changeset 2468:372678030ada

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 16 Jan 2018 12:49:04 +0100
parents 716e7d07e69d
children 9441184a60a0
files Resources/CMake/BoostConfiguration.cmake
diffstat 1 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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")