summaryrefslogtreecommitdiffstats
path: root/Modules/FindBoost.cmake
diff options
context:
space:
mode:
authorPhilip Lowman <philip@yhbt.com>2009-03-21 03:52:32 (GMT)
committerPhilip Lowman <philip@yhbt.com>2009-03-21 03:52:32 (GMT)
commit1a0512b0611e0fc61886352b3f7bc92e5b791635 (patch)
tree67b960ede4cfb7521f9edad3b0a7891f0c11ccc0 /Modules/FindBoost.cmake
parentd66436e2e4b1e4d58fb2e7b7bb50e15fc7c30845 (diff)
downloadCMake-1a0512b0611e0fc61886352b3f7bc92e5b791635.zip
CMake-1a0512b0611e0fc61886352b3f7bc92e5b791635.tar.gz
CMake-1a0512b0611e0fc61886352b3f7bc92e5b791635.tar.bz2
BUG: LIST(REMOVE_ITEM...) was being called on a variable that could be empty.
Diffstat (limited to 'Modules/FindBoost.cmake')
-rw-r--r--Modules/FindBoost.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index f4ccf09..ce6eb5b 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -304,7 +304,7 @@ IF(Boost_INCLUDE_DIR)
# On versions < 1.35, remove the System library from the considered list
# since it wasn't added until 1.35.
- if(Boost_VERSION)
+ if(Boost_VERSION AND Boost_FIND_COMPONENTS)
math(EXPR _boost_maj "${Boost_VERSION} / 100000")
math(EXPR _boost_min "${Boost_VERSION} / 100 % 1000")
if(${_boost_maj}.${_boost_min} VERSION_LESS 1.35)