]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
*** empty log message ***
authoradam <adam>
Fri, 9 Oct 2009 14:32:39 +0000 (14:32 +0000)
committeradam <adam>
Fri, 9 Oct 2009 14:32:39 +0000 (14:32 +0000)
salome_adm/cmake_files/FindBOOST.cmake

index 4f052d011a086b5459f1d78039c8392cfa7d5251..249cdee86ec63e76d59cd327be8460a40b96a3cb 100644 (file)
@@ -103,32 +103,28 @@ ENDIF(BOOST_STATUS)
 
 IF(BOOST_STATUS)
   SET(BOOST_LIBS)
-  IF(WINDOWS)
-    IF(CMAKE_BUILD_TYPE STREQUAL Debug)
-      SET(EXTENSION -gd)
-    ELSE(CMAKE_BUILD_TYPE STREQUAL Debug)
-      SET(EXTENSION)
-    ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
-    FOREACH(name thread date_time signals filesystem system)
+  FOREACH(name thread date_time signals filesystem system)
+    IF(WINDOWS)
+      IF(CMAKE_BUILD_TYPE STREQUAL Debug)
+       SET(EXTENSION -gd)
+      ELSE(CMAKE_BUILD_TYPE STREQUAL Debug)
+       SET(EXTENSION)
+      ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
       SET(LIB_NAMES)
       FOREACH(version 1_35 1_38)
        SET(LIB_NAMES ${LIB_NAMES} libboost_${name}-vc90-mt${EXTENSION}-${version})
       ENDFOREACH(version 1_35 1_38)
       FIND_LIBRARY(BOOST_LIB_${name} NAMES ${LIB_NAMES} PATHS ${BOOST_LIB_PATHS})
-      IF(NOT BOOST_LIB_${name})
-       SET(BOOST_STATUS 0)
-      ENDIF(NOT BOOST_LIB_${name})
-      SET(BOOST_LIBS ${BOOST_LIBS} ${BOOST_LIB_${name}})
-    ENDFOREACH(name thread date_time signals filesystem system)
-  ELSE(WINDOWS)
-    FOREACH(name thread date_time signals filesystem system)
+    ELSE(WINDOWS)
       FIND_LIBRARY(BOOST_LIB_${name} boost_${name} PATHS ${BOOST_LIB_PATHS})
-      IF(NOT BOOST_LIB_${name})
-       SET(BOOST_STATUS 0)
-      ENDIF(NOT BOOST_LIB_${name})
-      SET(BOOST_LIBS ${BOOST_LIBS} ${BOOST_LIB_${name}})
-    ENDFOREACH(name thread date_time signals filesystem system)
-  ENDIF(WINDOWS)
+    ENDIF(WINDOWS)
+    IF(NOT BOOST_LIB_${name})
+      SET(BOOST_STATUS 0)
+    ENDIF(NOT BOOST_LIB_${name})
+    STRING(TOUPPER ${name} upname)
+    SET(BOOST_LIB_${upname} ${BOOST_LIB_${name}})
+    SET(BOOST_LIBS ${BOOST_LIBS} ${BOOST_LIB_${name}})
+  ENDFOREACH(name thread date_time signals filesystem system)
 ENDIF(BOOST_STATUS)
 
 # ------