From: adam Date: Tue, 28 Apr 2009 14:13:28 +0000 (+0000) Subject: For boost to be compatible release / debug X-Git-Tag: CCAR_cm3_start~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d6489de4f13b9b87d296d10e11403bcb8c9bbdb3;p=modules%2Fkernel.git For boost to be compatible release / debug --- diff --git a/salome_adm/cmake_files/FindBOOST.cmake b/salome_adm/cmake_files/FindBOOST.cmake index da0469354..581560ef7 100644 --- a/salome_adm/cmake_files/FindBOOST.cmake +++ b/salome_adm/cmake_files/FindBOOST.cmake @@ -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)