summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorDouglas Gregor <doug.gregor@gmail.com>2008-04-22 17:32:07 (GMT)
committerDouglas Gregor <doug.gregor@gmail.com>2008-04-22 17:32:07 (GMT)
commit629620f9d46284ef4a6d3ecc6b3271d6ba0bad2c (patch)
tree3c322c2acf16e2542f0df030a929c35432ad3e72 /Modules
parentd278ba74b5929048f794cb8d5980d4e0a7600b29 (diff)
downloadCMake-629620f9d46284ef4a6d3ecc6b3271d6ba0bad2c.zip
CMake-629620f9d46284ef4a6d3ecc6b3271d6ba0bad2c.tar.gz
CMake-629620f9d46284ef4a6d3ecc6b3271d6ba0bad2c.tar.bz2
ENH: FindBoost always sets Boost_LIBRARY_DIRS when it finds the Boost libraries
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindBoost.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index 273a671..fe9025a 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -147,6 +147,7 @@ MACRO (_Boost_ADJUST_LIB_VARS basename)
IF (Boost_${basename}_LIBRARY)
SET(Boost_${basename}_LIBRARY ${Boost_${basename}_LIBRARY} CACHE FILEPATH "The Boost ${basename} library")
GET_FILENAME_COMPONENT(Boost_LIBRARY_DIRS "${Boost_${basename}_LIBRARY}" PATH)
+ SET(Boost_LIBRARY_DIRS ${Boost_LIBRARY_DIRS} CACHE FILEPATH "Boost library directory")
SET(Boost_${basename}_FOUND ON CACHE INTERNAL "Was the boost boost ${basename} library found")
ENDIF (Boost_${basename}_LIBRARY)
@@ -517,7 +518,7 @@ ELSE (_boost_IN_CACHE)
ENDIF(EXISTS "${_boost_LIB_DIR}/lib")
IF(_boost_LIB_DIR AND EXISTS "${_boost_LIB_DIR}")
- SET(Boost_LIBRARY_DIRS ${_boost_LIB_DIR})
+ SET(Boost_LIBRARY_DIRS ${_boost_LIB_DIR} CACHE FILEPATH "Boost library directory")
ENDIF(_boost_LIB_DIR AND EXISTS "${_boost_LIB_DIR}")
ENDIF( NOT Boost_LIBRARY_DIRS AND NOT _boost_CHECKED_COMPONENT )