From 0b68712a69bea1ee6ddb75b0aee3db456ab39051 Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 4 Jan 2010 10:48:27 +0000 Subject: [PATCH] Don't search the boost libs in system path if using WITH_BOOST --- salome_adm/cmake_files/FindBOOST.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salome_adm/cmake_files/FindBOOST.cmake b/salome_adm/cmake_files/FindBOOST.cmake index 9d87a7400..65600aa39 100644 --- a/salome_adm/cmake_files/FindBOOST.cmake +++ b/salome_adm/cmake_files/FindBOOST.cmake @@ -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) -- 2.39.2