diff --git a/CMakeLists.txt b/CMakeLists.txt index b0034179..06003b35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,9 @@ ADD_BII_TARGETS() ADD_BOOST(filesystem system thread) # This is needed by boost thread -TARGET_LINK_LIBRARIES(${BII_BLOCK_TARGET} INTERFACE rt) +IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") + TARGET_LINK_LIBRARIES(${BII_BLOCK_TARGET} INTERFACE rt) +ENDIF(CMAKE_SYSTEM_NAME) ACTIVATE_CPP14() ENABLE_STYLE_WARNINGS()