comparison Resources/CMake/BoostConfiguration.cmake @ 2469:9441184a60a0

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 16 Jan 2018 13:22:14 +0100
parents 372678030ada
children 4dcafa8d6633
comparison
equal deleted inserted replaced
2468:372678030ada 2469:9441184a60a0
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 list(APPEND ORTHANC_BOOST_COMPONENTS filesystem thread system date_time regex) 14 list(APPEND ORTHANC_BOOST_COMPONENTS filesystem thread system date_time regex)
15 foreach (item ${ORTHANC_BOOST_COMPONENTS}) 15 find_package(Boost COMPONENTS "${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()
27 16
28 if (NOT Boost_FOUND) 17 if (NOT Boost_FOUND)
18 foreach (item ${ORTHANC_BOOST_COMPONENTS})
19 string(TOUPPER ${item} tmp)
20
21 if (Boost_${tmp}_FOUND)
22 set(tmp2 "found")
23 else()
24 set(tmp2 "missing")
25 endif()
26
27 message("Boost component ${item} - ${tmp2}")
28 endforeach()
29
29 message(FATAL_ERROR "Unable to locate Boost on this system") 30 message(FATAL_ERROR "Unable to locate Boost on this system")
30 endif() 31 endif()
31 32
32 # Boost releases 1.44 through 1.47 supply both V2 and V3 filesystem 33 # Boost releases 1.44 through 1.47 supply both V2 and V3 filesystem
33 # http://www.boost.org/doc/libs/1_46_1/libs/filesystem/v3/doc/index.htm 34 # http://www.boost.org/doc/libs/1_46_1/libs/filesystem/v3/doc/index.htm