Fix linking on OS X, which does not have librt.
This commit is contained in:
@@ -38,7 +38,11 @@ SET (HDRS
|
||||
if(NOT MSVC)
|
||||
add_library(OSSupport ${SRCS} ${HDRS})
|
||||
|
||||
if(UNIX)
|
||||
target_link_libraries(OSSupport pthread rt)
|
||||
if(NOT APPLE)
|
||||
target_link_libraries(OSSupport rt)
|
||||
endif()
|
||||
|
||||
if(UNIX)
|
||||
target_link_libraries(OSSupport pthread)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user