summaryrefslogtreecommitdiffstats
path: root/Modules/FindBoost.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-09-24 15:15:32 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-27 15:04:20 (GMT)
commit0100f88e298c6766d60108537010ede0f83da1dd (patch)
treeb448ae7e21e98c6572764243be8759bb5cc74af0 /Modules/FindBoost.cmake
parent5b9149e0833084184c490c1980cc719175f14b0c (diff)
downloadCMake-0100f88e298c6766d60108537010ede0f83da1dd.zip
CMake-0100f88e298c6766d60108537010ede0f83da1dd.tar.gz
CMake-0100f88e298c6766d60108537010ede0f83da1dd.tar.bz2
FindBoost: Construct a clean Boost_LIBRARIES value
Construct the value from scratch based on the component library list. Avoid accumulating values from repeated find_package(Boost) calls. If Boost is not found, Boost_LIBRARIES should be empty.
Diffstat (limited to 'Modules/FindBoost.cmake')
-rw-r--r--Modules/FindBoost.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index 1a9dfbd..a2036a6 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -1219,6 +1219,7 @@ endif()
# Notification to end user about what was found
# ------------------------------------------------------------------------
+set(Boost_LIBRARIES "")
if(Boost_FOUND)
if(NOT Boost_FIND_QUIETLY)
message(STATUS "Boost version: ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}")
@@ -1232,7 +1233,7 @@ if(Boost_FOUND)
if(NOT Boost_FIND_QUIETLY)
message (STATUS " ${COMPONENT}")
endif()
- set(Boost_LIBRARIES ${Boost_LIBRARIES} ${Boost_${UPPERCOMPONENT}_LIBRARY})
+ list(APPEND Boost_LIBRARIES ${Boost_${UPPERCOMPONENT}_LIBRARY})
endif()
endforeach()
else()