From 4d2f3bd06950d2e7c7e4e3d40e049dab67d8476f Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Wed, 3 Oct 2012 13:23:58 +0200 Subject: [PATCH] Check for boost_thread and also boost_thread-mt --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a69a1d3c..6c6053b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -145,7 +145,10 @@ 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-mt signals REQUIRED) + find_package(Boost COMPONENTS program_options date_time system filesystem regex thread signals REQUIRED) + if (NOT Boost_FOUND) + find_package(Boost COMPONENTS program_options date_time system filesystem regex thread-mt signals REQUIRED) + endif() endif(WIN32) message( STATUS "Found Boost: ${Boost_LIBRARIES}, ${Boost_INCLUDE_DIR}")