BUG: LIST(REMOVE_ITEM...) was being called on a variable that could be empty.

This commit is contained in:
Philip Lowman 2009-03-20 23:52:32 -04:00
parent d66436e2e4
commit 1a0512b061

View File

@ -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)