]> Creatis software - crea.git/commitdiff
#3081 crea Feature New Normal - cmake boost configuration for CentOS 2.6 changestoITK3and4
authorEduardo DAVILA <davila@CreaTools-CentOS.(none)>
Fri, 17 Mar 2017 11:47:26 +0000 (12:47 +0100)
committerEduardo DAVILA <davila@CreaTools-CentOS.(none)>
Fri, 17 Mar 2017 11:47:26 +0000 (12:47 +0100)
cmake/CREAMacro_FindAndUseLibraries.cmake

index e4d5e082549f22a70c71ce472a3274fa1c7878d7..5625e8bf86ea66fdb0874d93632dddc1a03534e4 100644 (file)
@@ -326,6 +326,8 @@ IF(USE_BOOST)
     FIND_PACKAGE(Boost COMPONENTS filesystem system signals date_time thread regex program_options REQUIRED)
     IF(Boost_FOUND) 
          ADD_DEFINITIONS(-DBOOST_FILESYSTEM_VERSION=3)
+         ADD_DEFINITIONS(-DBOOST_MAYOR_VERSION=${Boost_MAJOR_VERSION})
+         ADD_DEFINITIONS(-DBOOST_MINOR_VERSION=${Boost_MINOR_VERSION})
       MESSAGE ( STATUS "=======================================")
       MESSAGE ( STATUS "Looking for boost C++ library... - found in ${Boost_INCLUDE_DIR}")
       INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})