]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Don't search the boost libs in system path if using WITH_BOOST
authoradam <adam>
Mon, 4 Jan 2010 10:48:27 +0000 (10:48 +0000)
committeradam <adam>
Mon, 4 Jan 2010 10:48:27 +0000 (10:48 +0000)
salome_adm/cmake_files/FindBOOST.cmake

index 9d87a74008b2a6eb3a8a37fef6a025c227d0eb1c..65600aa3944f245719bf766fbdd4c3c9e1278e08 100644 (file)
@@ -114,9 +114,9 @@ IF(BOOST_STATUS)
       FOREACH(version 1_35 1_38)
        SET(LIB_NAMES ${LIB_NAMES} libboost_${name}-vc90-mt${EXTENSION}-${version})
       ENDFOREACH(version 1_35 1_38)
-      FIND_LIBRARY(BOOST_LIB_${name} NAMES ${LIB_NAMES} PATHS ${BOOST_LIB_PATHS})
+      FIND_LIBRARY(BOOST_LIB_${name} NAMES ${LIB_NAMES} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION})
     ELSE(WINDOWS)
-      FIND_LIBRARY(BOOST_LIB_${name} boost_${name} PATHS ${BOOST_LIB_PATHS})
+      FIND_LIBRARY(BOOST_LIB_${name} boost_${name} PATHS ${BOOST_LIB_PATHS} ${BOOST_FIND_PATHS_OPTION})
     ENDIF(WINDOWS)
     IF(NOT BOOST_LIB_${name})
       SET(BOOST_STATUS 0)