Don't build tests when installing; link to Threads::Threads in tests because of lw_thread_test.cpp

This commit is contained in:
Peter Dimov committed 2020-01-10 00:54:01 +02:00
1 parent 766ab05a12
commit e0c7bd9a7e
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -6,6 +6,10 @@ include(BoostTestJamfile OPTIONAL RESULT_VARIABLE HAVE_BOOST_TEST)
if(HAVE_BOOST_TEST)
boost_test_jamfile(FILE Jamfile LINK_LIBRARIES Boost::smart_ptr Boost::core Boost::align Boost::atomic Boost::container_hash)
# for lw_thread_test.cpp
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads)
boost_test_jamfile(FILE Jamfile LINK_LIBRARIES Boost::smart_ptr Boost::core Boost::align Boost::atomic Boost::container_hash Threads::Threads)
endif()