Commit 5c9f4bcb authored by Chris Cantwell's avatar Chris Cantwell

Workaround for Linux distributions which do not symlink the -mt Boost thread lib

parent e7aa3c5a
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment