]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Preparation of the SALOME7.2.0 win32 version.
authorrnv <rnv@opencascade.com>
Mon, 24 Jun 2013 10:43:48 +0000 (10:43 +0000)
committerrnv <rnv@opencascade.com>
Mon, 24 Jun 2013 10:43:48 +0000 (10:43 +0000)
salome_adm/cmake_files/deprecated/FindBOOST.cmake

index fff9d21a128640be172660319e787866c18e3a5e..f297de98a9e3918d34d8b65827a85cf1e416745d 100644 (file)
@@ -26,6 +26,8 @@ MESSAGE(STATUS "Check for boost ...")
 
 # ------
 
+SET (boost_versions 1_35 1_38 1_42 1_46_1 1_49 1_52)
+
 IF(BOOST_IS_MANDATORY STREQUAL 0)
   SET(BOOST_IS_MANDATORY 0)
   SET(BOOST_IS_OPTIONAL 1)
@@ -74,7 +76,10 @@ ENDIF(BOOST_STATUS)
 
 IF(BOOST_STATUS)
   IF(BOOST_ROOT_USER)
-    SET(BOOST_INCLUDE_PATHS ${BOOST_ROOT_USER} ${BOOST_ROOT_USER}/include)
+    SET(BOOST_INCLUDE_PATHS ${BOOST_ROOT_USER} ${BOOST_ROOT_USER}/include )
+    FOREACH(version ${boost_versions})
+     SET(BOOST_INCLUDE_PATHS ${BOOST_INCLUDE_PATHS} ${BOOST_ROOT_USER}/include/boost-${version} )
+    ENDFOREACH(version ${boost_versions})
   ELSE(BOOST_ROOT_USER)
     SET(BOOST_INCLUDE_PATHS)
   ENDIF(BOOST_ROOT_USER)
@@ -114,7 +119,7 @@ ENDIF(WINDOWS)
   
 IF(BOOST_STATUS)
   SET(BOOST_LIBS)
-  FOREACH(name thread date_time signals filesystem system regex)
+  FOREACH(name thread date_time signals filesystem system regex chrono)
     IF(WINDOWS)
       IF(CMAKE_BUILD_TYPE STREQUAL Debug)
         SET(EXTENSION -gd)
@@ -123,10 +128,10 @@ IF(BOOST_STATUS)
       ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
       SET(LIB_NAMES)
       SET(STATIC_LIB_NAMES)      
-      FOREACH(version 1_35 1_38 1_42 1_46_1 1_49)
+      FOREACH(version ${boost_versions})
         SET(LIB_NAMES ${LIB_NAMES} boost_${name}-vc90-mt${EXTENSION}-${version})
         SET(STATIC_LIB_NAMES ${STATIC_LIB_NAMES} libboost_${name}-vc90-mt${EXTENSION}-${version})
-      ENDFOREACH(version 1_35 1_38 1_42 1_46_1 1_49)
+      ENDFOREACH(version ${boost_versions})
       FIND_LIBRARY(BOOST_LIB_${name} NAMES ${LIB_NAMES} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION})
       SET(BOOST_LIB_${name}_FOUNDED ${BOOST_LIB_${name}})
       IF(NOT BOOST_LIB_${name})