From: Mikhail Komarov Date: Thu, 12 Jan 2017 02:27:02 +0000 (+0300) Subject: Threads package made totally optional. Would be found when not X-Git-Tag: v2.3.0~209^2~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=64dd9348abeaa85b2c2e573fc008adc141239821;p=libcds.git Threads package made totally optional. Would be found when not crosscompiling and would not be when either. --- 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)