From 64dd9348abeaa85b2c2e573fc008adc141239821 Mon Sep 17 00:00:00 2001 From: Mikhail Komarov Date: Thu, 12 Jan 2017 05:27:02 +0300 Subject: [PATCH] Threads package made totally optional. Would be found when not crosscompiling and would not be when either. --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 66d71b5c..73a08be7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,11 +17,7 @@ option(WITH_BOOST_ATOMIC "Use boost atomics (only for boost >= 1.54)" OFF) option(WITH_ASAN "Build AddressSantinizer instrumented code" OFF) option(WITH_TSAN "Build ThreadSantinizer instrumented code" OFF) -if(CMAKE_CROSSCOMPILING) - find_package(Threads) -else() - find_package(Threads REQUIRED) -endif() +find_package(Threads) if(TARGET boost::system AND TARGET boost::thread) link_libraries(boost::system boost::thread) -- 2.34.1