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)