Linking with librt only on Linux

This commit is contained in:
Strahinja Val Markovic 2013-02-17 10:04:40 -08:00
parent 5175b88392
commit 9a6a9f5dfe

View File

@ -207,7 +207,8 @@ if ( EXTRA_RPATH )
set( CMAKE_INSTALL_RPATH "${EXTRA_RPATH}:${CMAKE_INSTALL_RPATH}" )
endif()
if ( UNIX )
# Needed on Linux machines, but not on Macs
if ( UNIX AND NOT APPLE )
set( EXTRA_LIBS rt )
endif()