From ff04ee780761d97518d1596fdd94333f0aa2f738 Mon Sep 17 00:00:00 2001 From: Stas Date: Tue, 2 Nov 2021 10:24:34 +0100 Subject: [PATCH] get rid of the Boost::thread linking --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6a7e14c..7577443 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,9 +114,9 @@ endif() # Links the target exe against the libraries target_link_libraries(${PROJECT_NAME} PUBLIC dbt-rise-tgc) if(TARGET Boost::program_options) - target_link_libraries(${PROJECT_NAME} PUBLIC Boost::program_options Boost::thread) + target_link_libraries(${PROJECT_NAME} PUBLIC Boost::program_options) else() - target_link_libraries(${PROJECT_NAME} PUBLIC ${BOOST_program_options_LIBRARY} ${BOOST_thread_LIBRARY}) + target_link_libraries(${PROJECT_NAME} PUBLIC ${BOOST_program_options_LIBRARY}) endif() target_link_libraries(${PROJECT_NAME} PUBLIC ${CMAKE_DL_LIBS}) if (Tcmalloc_FOUND)