From bd43fc2d356383d341738fcef5afa6eab37aaceb Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 3 Aug 2009 15:11:53 +0000 Subject: [PATCH] Improve boost detection in order to be correct for all modules --- salome_adm/cmake_files/FindBOOST.cmake | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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) -- 2.39.2