From 94424dc0629b2b5844de56cf7361950eb277edb8 Mon Sep 17 00:00:00 2001 From: Frederic Cervenansky Date: Thu, 23 Sep 2010 12:18:23 +0000 Subject: [PATCH] *** empty log message *** --- cmake/CREAMacro_FindAndUseLibraries.cmake | 58 +++++++++++++++-------- 1 file changed, 37 insertions(+), 21 deletions(-) diff --git a/cmake/CREAMacro_FindAndUseLibraries.cmake b/cmake/CREAMacro_FindAndUseLibraries.cmake index 08153c0..523c261 100644 --- a/cmake/CREAMacro_FindAndUseLibraries.cmake +++ b/cmake/CREAMacro_FindAndUseLibraries.cmake @@ -268,36 +268,46 @@ ENDIF(USE_TTH) #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- + IF(USE_BOOST) +message(STATUS "1") IF(NOT Boost_FOUND) - FIND_PACKAGE(Boost REQUIRED) + FIND_PACKAGE(Boost COMPONENTS filesystem signals date_time regex REQUIRED) IF(Boost_FOUND) + message(STATUS "1 bis") MESSAGE ( STATUS "=======================================") MESSAGE ( STATUS "Looking for boost C++ library... - found in ${Boost_INCLUDE_DIR}") INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS}) - LINK_DIRECTORIES( ${Boost_LIBRARY_DIRS} ) - - CREA_DEFINE( USE_BOOST ) + LINK_DIRECTORIES( ${Boost_LIBRARY_DIRS}) IF(WIN32) + message("creamacro find and use lib = ${Boost_LIBRARIES}") + + + CREA_DEFINE( USE_BOOST ) - LINK_DIRECTORIES( ${Boost_INCLUDE_DIRS}/Bin/lib) - #message("creamacro find and use lib = ${Boost_SIGNALS_LIBRARY}") - IF(USE_DEBUG_LIB) - SET(BOOST_LIBRARIES - boost_signals-vc90-mt-gd-1_40 - boost_filesystem-vc90-mt-gd-1_40 - boost_date_time-vc90-mt-gd-1_40 - #what about boost_thread? JPR + SET(BOOST_LIBRARIES + ${Boost_LIBRARIES} ) - ELSE(NOT USE_DEBUG_LIB) - SET(BOOST_LIBRARIES - boost_signals-vc90-mt-1_40 - boost_filesystem-vc90-mt-1_40 - boost_date_time-vc90-mt-1_40 - ) - ENDIF(USE_DEBUG_LIB) +# FCY with cmake boost, it's useless. +# But if it is not working, uncomment +# +# IF(USE_DEBUG_LIB) +# SET(BOOST_LIBRARIES +# boost_signals-vc90-mt-gd-1_40 +# boost_filesystem-vc90-mt-gd-1_40 +# boost_date_time-vc90-mt-gd-1_40 +# #what about boost_thread? JPR +# ) +# ELSE(NOT USE_DEBUG_LIB) +# SET(BOOST_LIBRARIES +# boost_signals-vc90-mt-1_40 +# boost_filesystem-vc90-mt-1_40 +# boost_date_time-vc90-mt-1_40 +# ) +# ENDIF(USE_DEBUG_LIB) ENDIF(WIN32) IF(NOT WIN32) + SET(BOOST_LIBRARIES boost_signals-mt boost_filesystem-mt @@ -309,12 +319,18 @@ IF(USE_BOOST) ) ENDIF(NOT WIN32) - MARK_AS_ADVANCED(Boost_INCLUDE_DIR) + MARK_AS_ADVANCED(Boost_INCLUDE_DIR) + MARK_AS_ADVANCED(Boost_LIBRARY_DIRS) + ELSE(Boost_FOUND) - MESSAGE(FATAL_ERROR "boost C++ library not found - Set Boost_INCLUDE_DIR to the directory containing boost headers") + message(STATUS "2") + MESSAGE( "boost C++ library not found - Set Boost_INCLUDE_DIR to the directory containing boost headers") ENDIF(Boost_FOUND) ENDIF(NOT Boost_FOUND) + message("${Boost_FOUND}") ENDIF(USE_BOOST) +#----------------------------------------------------------- + #----------------------------------------------------------------------------- IF(USE_XERCES) -- 2.45.1