]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Improve boost detection in order to be correct for all modules
authoradam <adam>
Mon, 3 Aug 2009 15:11:53 +0000 (15:11 +0000)
committeradam <adam>
Mon, 3 Aug 2009 15:11:53 +0000 (15:11 +0000)
salome_adm/cmake_files/FindBOOST.cmake

index d46eb032aae0adb688e54e4a74823ea24c340f24..4f052d011a086b5459f1d78039c8392cfa7d5251 100644 (file)
@@ -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)