From e60c3200cd13b3b265a778994c24fc5b3317e063 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Me=C3=9Fmer?= Date: Fri, 16 Oct 2015 03:12:27 +0200 Subject: [PATCH] Fix boost thread dependency --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 83c5dde9..b3da61af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,11 @@ ACTIVATE_CPP14() ADD_BOOST(filesystem system thread) +# This is needed by boost thread +IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") + TARGET_LINK_LIBRARIES(${BII_BLOCK_TARGET} INTERFACE rt) +ENDIF(CMAKE_SYSTEM_NAME) + ENABLE_STYLE_WARNINGS() # You can safely delete lines from here...