From: adam Date: Mon, 3 Aug 2009 15:11:53 +0000 (+0000) Subject: Improve boost detection in order to be correct for all modules X-Git-Tag: V5_1_3rc1~96 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bd43fc2d356383d341738fcef5afa6eab37aaceb;p=modules%2Fkernel.git Improve boost detection in order to be correct for all modules --- diff --git a/salome_adm/cmake_files/FindBOOST.cmake b/salome_adm/cmake_files/FindBOOST.cmake index d46eb032a..4f052d011 100644 --- a/salome_adm/cmake_files/FindBOOST.cmake +++ b/salome_adm/cmake_files/FindBOOST.cmake @@ -121,8 +121,13 @@ IF(BOOST_STATUS) SET(BOOST_LIBS ${BOOST_LIBS} ${BOOST_LIB_${name}}) ENDFOREACH(name thread date_time signals filesystem system) ELSE(WINDOWS) - FIND_LIBRARY(BOOST_LIB_THREAD boost_thread ${BOOST_LIB_PATHS}) - SET(BOOST_LIBS ${BOOST_LIBS} ${BOOST_LIB_THREAD}) + FOREACH(name thread date_time signals filesystem system) + 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(BOOST_STATUS)