Check for boost_thread-mt prioritely and fallback to boost_thread

This commit is contained in:
Jan Kaluza 2012-10-03 13:24:53 +02:00
parent 4d2f3bd069
commit 5110f047f1

View file

@ -145,9 +145,9 @@ else(WIN32)
message(STATUS "Using non-multithreaded boost")
set(Boost_USE_MULTITHREADED 0)
endif(contains)
find_package(Boost COMPONENTS program_options date_time system filesystem regex thread signals REQUIRED)
find_package(Boost COMPONENTS program_options date_time system filesystem regex thread-mt signals REQUIRED)
if (NOT Boost_FOUND)
find_package(Boost COMPONENTS program_options date_time system filesystem regex thread-mt signals REQUIRED)
find_package(Boost COMPONENTS program_options date_time system filesystem regex thread signals REQUIRED)
endif()
endif(WIN32)