# HG changeset patch # User Sebastien Jodogne # Date 1516105334 -3600 # Node ID 9441184a60a08a66a99986e7c8a72515aa99da0a # Parent 372678030ada116f9ec9078af9811ec25485664b fix diff -r 372678030ada -r 9441184a60a0 Resources/CMake/BoostConfiguration.cmake --- a/Resources/CMake/BoostConfiguration.cmake Tue Jan 16 12:49:04 2018 +0100 +++ b/Resources/CMake/BoostConfiguration.cmake Tue Jan 16 13:22:14 2018 +0100 @@ -12,20 +12,21 @@ endif() 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() + find_package(Boost COMPONENTS "${ORTHANC_BOOST_COMPONENTS}") if (NOT Boost_FOUND) + foreach (item ${ORTHANC_BOOST_COMPONENTS}) + string(TOUPPER ${item} tmp) + + if (Boost_${tmp}_FOUND) + set(tmp2 "found") + else() + set(tmp2 "missing") + endif() + + message("Boost component ${item} - ${tmp2}") + endforeach() + message(FATAL_ERROR "Unable to locate Boost on this system") endif()