Linking with librt only on Linux
This commit is contained in:
parent
5175b88392
commit
9a6a9f5dfe
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user