comparison Resources/CMake/BoostConfiguration.cmake @ 3653:468181e2f090

Fix issue #166 (CMake find_boost version is now broken with newer boost/cmake)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Feb 2020 15:23:22 +0100
parents 74fc2a3b43bb
children 0ba17d2bcdc9
comparison
equal deleted inserted replaced
3651:46cb00e4adbb 3653:468181e2f090
28 endforeach() 28 endforeach()
29 29
30 message(FATAL_ERROR "Unable to locate Boost on this system") 30 message(FATAL_ERROR "Unable to locate Boost on this system")
31 endif() 31 endif()
32 32
33
34 # Patch by xnox to fix issue #166 (CMake find_boost version is now
35 # broken with newer boost/cmake)
36 # https://bitbucket.org/sjodogne/orthanc/issues/166/
37 if (POLICY CMP0093)
38 set(BOOST144 1.44)
39 else()
40 set(BOOST144 104400)
41 endif()
42
43
33 # Boost releases 1.44 through 1.47 supply both V2 and V3 filesystem 44 # Boost releases 1.44 through 1.47 supply both V2 and V3 filesystem
34 # http://www.boost.org/doc/libs/1_46_1/libs/filesystem/v3/doc/index.htm 45 # http://www.boost.org/doc/libs/1_46_1/libs/filesystem/v3/doc/index.htm
35 if (${Boost_VERSION} LESS 104400) 46 if (${Boost_VERSION} LESS ${BOOST144})
36 add_definitions( 47 add_definitions(
37 -DBOOST_HAS_FILESYSTEM_V3=0 48 -DBOOST_HAS_FILESYSTEM_V3=0
38 ) 49 )
39 else() 50 else()
40 add_definitions( 51 add_definitions(