diff --git a/CMakeLists.txt b/CMakeLists.txt index a69a1d3c694bcdda673c757c4c61b3cf0164f3a2..7e1c2792bda779dd60043d87d740b65222462e76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -145,7 +145,12 @@ 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) + set(Boost_FIND_QUIETLY ON) + find_package(Boost COMPONENTS program_options date_time system filesystem regex thread-mt signals) + if (NOT Boost_FOUND) + set(Boost_FIND_QUIETLY OFF) + find_package(Boost COMPONENTS program_options date_time system filesystem regex thread signals REQUIRED) + endif() endif(WIN32) message( STATUS "Found Boost: ${Boost_LIBRARIES}, ${Boost_INCLUDE_DIR}")