comparison Resources/CMake/BoostConfiguration.cmake @ 2468:372678030ada

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 16 Jan 2018 12:49:04 +0100
parents 6b3c0d5f65af
children 9441184a60a0
comparison
equal deleted inserted replaced
2467:716e7d07e69d 2468:372678030ada
9 9
10 if (ENABLE_LOCALE) 10 if (ENABLE_LOCALE)
11 list(APPEND ORTHANC_BOOST_COMPONENTS locale) 11 list(APPEND ORTHANC_BOOST_COMPONENTS locale)
12 endif() 12 endif()
13 13
14 find_package(Boost 14 list(APPEND ORTHANC_BOOST_COMPONENTS filesystem thread system date_time regex)
15 COMPONENTS filesystem thread system date_time regex ${ORTHANC_BOOST_COMPONENTS}) 15 foreach (item ${ORTHANC_BOOST_COMPONENTS})
16 find_package(Boost QUIET COMPONENTS "${item}")
17 string(TOUPPER ${item} tmp)
18
19 if (Boost_${tmp}_FOUND)
20 set(tmp2 "found")
21 else()
22 set(tmp2 "missing")
23 endif()
24
25 message("Looking for Boost component: ${item} - ${tmp2}")
26 endforeach()
16 27
17 if (NOT Boost_FOUND) 28 if (NOT Boost_FOUND)
18 message(FATAL_ERROR "Unable to locate Boost on this system") 29 message(FATAL_ERROR "Unable to locate Boost on this system")
19 endif() 30 endif()
20 31