Fix compile on Debian 8 (link it to a library it wants)

This commit is contained in:
Sebastian Messmer 2016-02-14 17:09:14 +01:00
parent e4d41af9a9
commit b324ec5221
2 changed files with 10 additions and 0 deletions

View File

@ -53,5 +53,10 @@ add_executable(${PROJECT_NAME} ${SOURCES})
target_link_libraries(${PROJECT_NAME} googletest cpp-utils)
add_test(${PROJECT_NAME} ${PROJECT_NAME})
# This is needed by boost thread
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries(${PROJECT_NAME} PUBLIC rt)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_enable_style_warnings(${PROJECT_NAME})
target_activate_cpp14(${PROJECT_NAME})

View File

@ -106,5 +106,10 @@ add_executable(${PROJECT_NAME} ${SOURCES})
target_link_libraries(${PROJECT_NAME} googletest fspp)
add_test(${PROJECT_NAME} ${PROJECT_NAME})
# This is needed by boost thread
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries(${PROJECT_NAME} PUBLIC rt)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_enable_style_warnings(${PROJECT_NAME})
target_activate_cpp14(${PROJECT_NAME})