# HG changeset patch # User Sebastien Jodogne # Date 1516103344 -3600 # Node ID 372678030ada116f9ec9078af9811ec25485664b # Parent 716e7d07e69d8ad76fe261c73d008beaee554c84 fix diff -r 716e7d07e69d -r 372678030ada Resources/CMake/BoostConfiguration.cmake --- a/Resources/CMake/BoostConfiguration.cmake Tue Jan 09 12:59:55 2018 +0100 +++ b/Resources/CMake/BoostConfiguration.cmake Tue Jan 16 12:49:04 2018 +0100 @@ -11,8 +11,19 @@ list(APPEND ORTHANC_BOOST_COMPONENTS locale) endif() - find_package(Boost - COMPONENTS filesystem thread system date_time regex ${ORTHANC_BOOST_COMPONENTS}) + list(APPEND ORTHANC_BOOST_COMPONENTS filesystem thread system date_time regex) + foreach (item ${ORTHANC_BOOST_COMPONENTS}) + find_package(Boost QUIET COMPONENTS "${item}") + string(TOUPPER ${item} tmp) + + if (Boost_${tmp}_FOUND) + set(tmp2 "found") + else() + set(tmp2 "missing") + endif() + + message("Looking for Boost component: ${item} - ${tmp2}") + endforeach() if (NOT Boost_FOUND) message(FATAL_ERROR "Unable to locate Boost on this system")