]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
For boost to be compatible release / debug
authoradam <adam>
Tue, 28 Apr 2009 14:13:28 +0000 (14:13 +0000)
committeradam <adam>
Tue, 28 Apr 2009 14:13:28 +0000 (14:13 +0000)
salome_adm/cmake_files/FindBOOST.cmake

index da046935408a209258f5cf969d10bcebf091b1ec..581560ef74850ffbbb9e4aa989bd9247cba153ff 100644 (file)
@@ -103,11 +103,16 @@ ENDIF(BOOST_STATUS)
 
 IF(BOOST_STATUS)
   IF(WINDOWS)
-    FIND_LIBRARY(BOOST_LIB_THREAD libboost_thread-vc90-mt-gd-1_35 ${BOOST_LIB_PATHS})
-    FIND_LIBRARY(BOOST_LIB_DATE_TIME libboost_date_time-vc90-mt-gd-1_35 ${BOOST_LIB_PATHS})
-    FIND_LIBRARY(BOOST_LIB_SIGNALS libboost_signals-vc90-mt-gd-1_35 ${BOOST_LIB_PATHS})
-    FIND_LIBRARY(BOOST_LIB_FILESYSTEM libboost_filesystem-vc90-mt-gd-1_35 ${BOOST_LIB_PATHS})
-    FIND_LIBRARY(BOOST_LIB_SYSTEM libboost_system-vc90-mt-gd-1_35 ${BOOST_LIB_PATHS})
+    IF(CMAKE_BUILD_TYPE STREQUAL Debug)
+      SET(EXTENSION -gd)
+    ELSE(CMAKE_BUILD_TYPE STREQUAL Debug)
+      SET(EXTENSION)
+    ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug)
+    FIND_LIBRARY(BOOST_LIB_THREAD libboost_thread-vc90-mt${EXTENSION}-1_35 ${BOOST_LIB_PATHS})
+    FIND_LIBRARY(BOOST_LIB_DATE_TIME libboost_date_time-vc90-mt${EXTENSION}-1_35 ${BOOST_LIB_PATHS})
+    FIND_LIBRARY(BOOST_LIB_SIGNALS libboost_signals-vc90-mt${EXTENSION}-1_35 ${BOOST_LIB_PATHS})
+    FIND_LIBRARY(BOOST_LIB_FILESYSTEM libboost_filesystem-vc90-mt${EXTENSION}-1_35 ${BOOST_LIB_PATHS})
+    FIND_LIBRARY(BOOST_LIB_SYSTEM libboost_system-vc90-mt${EXTENSION}-1_35 ${BOOST_LIB_PATHS})
   ELSE(WINDOWS)
     FIND_LIBRARY(BOOST_LIB_THREAD boost_thread ${BOOST_LIB_PATHS})
   ENDIF(WINDOWS)