]> Creatis software - crea.git/commitdiff
bug #1917
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Sat, 16 Feb 2013 14:36:02 +0000 (15:36 +0100)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Sat, 16 Feb 2013 14:36:02 +0000 (15:36 +0100)
Normal Not compiling with boost 1.52 windows
creaBruker

cmake/CREAMacro_FindAndUseLibraries.cmake

index 6d9e41603c95a126392434c67bbc431b6da53944..49ff5bf3086b2678ca11c579a075ca9fc6755b69 100644 (file)
@@ -312,7 +312,8 @@ IF(USE_BOOST)
        add_definitions( -DBOOST_ALL_NO_LIB )
        add_definitions( -DBOOST_ALL_DYN_LINK )
     FIND_PACKAGE(Boost COMPONENTS filesystem system signals date_time regex REQUIRED)
-    IF(Boost_FOUND)
+    IF(Boost_FOUND) 
+         ADD_DEFINITIONS(-DBOOST_FILESYSTEM_VERSION=3)
       MESSAGE ( STATUS "=======================================")
       MESSAGE ( STATUS "Looking for boost C++ library... - found in ${Boost_INCLUDE_DIR}")
       INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})