From 1a0512b0611e0fc61886352b3f7bc92e5b791635 Mon Sep 17 00:00:00 2001 From: Philip Lowman Date: Fri, 20 Mar 2009 23:52:32 -0400 Subject: BUG: LIST(REMOVE_ITEM...) was being called on a variable that could be empty. --- Modules/FindBoost.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v0.12