Linking with librt only on Linux

This commit is contained in:
Strahinja Val Markovic 2013-02-17 10:04:40 -08:00
parent f0de35dd14
commit 8f66862726

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()