summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-09-14 17:20:50 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-09-14 17:22:18 (GMT)
commitcff5151822d4f3e68befed01f47013d478e85bcd (patch)
treefd014e1486b2681ecb97d29b585ac94c299e335e /Modules
parent14a4f9a3618650771b90d6eb9f02119cbcd6983d (diff)
parentee300dc25ddb1968d266c70cad2d382702e43b25 (diff)
downloadCMake-cff5151822d4f3e68befed01f47013d478e85bcd.zip
CMake-cff5151822d4f3e68befed01f47013d478e85bcd.tar.gz
CMake-cff5151822d4f3e68befed01f47013d478e85bcd.tar.bz2
Merge topic 'boost-notfound'
ee300dc25d FindBoost: Suppress imported targets warning if Boost was not found Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2376
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindBoost.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index 24ee1f2..37539ba 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -573,7 +573,7 @@ function(_Boost_COMPONENT_DEPENDENCIES component _ret)
endif()
set(_Boost_IMPORTED_TARGETS TRUE)
- if(Boost_VERSION VERSION_LESS 103300)
+ if(Boost_VERSION AND Boost_VERSION VERSION_LESS 103300)
message(WARNING "Imported targets and dependency information not available for Boost version ${Boost_VERSION} (all versions older than 1.33)")
set(_Boost_IMPORTED_TARGETS FALSE)
elseif(NOT Boost_VERSION VERSION_LESS 103300 AND Boost_VERSION VERSION_LESS 103500)