diff options
author | Douglas Gregor <doug.gregor@gmail.com> | 2008-04-22 17:32:07 (GMT) |
---|---|---|
committer | Douglas Gregor <doug.gregor@gmail.com> | 2008-04-22 17:32:07 (GMT) |
commit | 629620f9d46284ef4a6d3ecc6b3271d6ba0bad2c (patch) | |
tree | 3c322c2acf16e2542f0df030a929c35432ad3e72 /Modules | |
parent | d278ba74b5929048f794cb8d5980d4e0a7600b29 (diff) | |
download | CMake-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.cmake | 3 |
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 ) |