diff options
author | Philip Lowman <philip@yhbt.com> | 2009-03-17 02:28:35 (GMT) |
---|---|---|
committer | Philip Lowman <philip@yhbt.com> | 2009-03-17 02:28:35 (GMT) |
commit | 10da3f74eabe822bc8d6d19d3cee3adf1efdeecd (patch) | |
tree | fcb9c18f4ff04375c51c716532dc47336779dcb2 /Modules | |
parent | 257937f2bd3b82267c3bc01dd08ebc4eb3959c22 (diff) | |
download | CMake-10da3f74eabe822bc8d6d19d3cee3adf1efdeecd.zip CMake-10da3f74eabe822bc8d6d19d3cee3adf1efdeecd.tar.gz CMake-10da3f74eabe822bc8d6d19d3cee3adf1efdeecd.tar.bz2 |
BUG: Eliminates detection of Boost system library prior to 1.35 (see issue #8734)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindBoost.cmake | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake index 20198af..f4ccf09 100644 --- a/Modules/FindBoost.cmake +++ b/Modules/FindBoost.cmake @@ -299,9 +299,19 @@ endif(Boost_FIND_VERSION_EXACT) # Boost. set(Boost_ERROR_REASON) - SET( _boost_IN_CACHE TRUE) 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) + math(EXPR _boost_maj "${Boost_VERSION} / 100000") + math(EXPR _boost_min "${Boost_VERSION} / 100 % 1000") + if(${_boost_maj}.${_boost_min} VERSION_LESS 1.35) + list(REMOVE_ITEM Boost_FIND_COMPONENTS system) + endif() + endif() + FOREACH(COMPONENT ${Boost_FIND_COMPONENTS}) STRING(TOUPPER ${COMPONENT} COMPONENT) IF(NOT Boost_${COMPONENT}_FOUND) |