From 5c9f4bcbf7d9e28d5ac69ffbe63a16a5af516162 Mon Sep 17 00:00:00 2001 From: Chris Cantwell Date: Tue, 11 Dec 2012 08:09:44 +0000 Subject: [PATCH] Workaround for Linux distributions which do not symlink the -mt Boost thread lib --- cmake/ThirdPartyBoost.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/ThirdPartyBoost.cmake b/cmake/ThirdPartyBoost.cmake index ca398a25f..2debefa56 100644 --- a/cmake/ThirdPartyBoost.cmake +++ b/cmake/ThirdPartyBoost.cmake @@ -99,6 +99,11 @@ ELSE (THIRDPARTY_BUILD_BOOST) FIND_PACKAGE( Boost COMPONENTS thread iostreams zlib date_time filesystem system program_options regex) SET(BOOST_ROOT ${CMAKE_SOURCE_DIR}/ThirdParty/dist) FIND_PACKAGE( Boost COMPONENTS thread iostreams zlib date_time filesystem system program_options regex) + # Hack for odd distributions which do not symlink for non -mt thread lib + IF( NOT BOOST_THREAD_FOUND ) + SET( Boost_USE_MULTITHREADED ON) + FIND_PACKAGE( Boost COMPONENTS thread ) + ENDIF() ELSE() FIND_PACKAGE( Boost COMPONENTS thread iostreams zlib date_time filesystem system program_options regex) ENDIF() -- GitLab