summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FindBoost/CMakePackage
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-29 14:05:50 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-29 14:10:01 (GMT)
commitc044b9ae8421cae4ee91399dabee31aa75f80b1c (patch)
treebd7bbe85d4a7c14359414864f4dc999311285d81 /Tests/RunCMake/FindBoost/CMakePackage
parent6bced4bf76e33b5c80a9a821d99ac933afa6ac03 (diff)
downloadCMake-c044b9ae8421cae4ee91399dabee31aa75f80b1c.zip
CMake-c044b9ae8421cae4ee91399dabee31aa75f80b1c.tar.gz
CMake-c044b9ae8421cae4ee91399dabee31aa75f80b1c.tar.bz2
FindBoost: Improve messages when a Boost CMake package is found
Add a test for this case to verify the messages. This test will also be valuable to cover this code path in which we've had several regressions recently.
Diffstat (limited to 'Tests/RunCMake/FindBoost/CMakePackage')
-rw-r--r--Tests/RunCMake/FindBoost/CMakePackage/BoostConfig.cmake0
-rw-r--r--Tests/RunCMake/FindBoost/CMakePackage/BoostConfigVersion.cmake7
2 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/FindBoost/CMakePackage/BoostConfig.cmake b/Tests/RunCMake/FindBoost/CMakePackage/BoostConfig.cmake
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Tests/RunCMake/FindBoost/CMakePackage/BoostConfig.cmake
diff --git a/Tests/RunCMake/FindBoost/CMakePackage/BoostConfigVersion.cmake b/Tests/RunCMake/FindBoost/CMakePackage/BoostConfigVersion.cmake
new file mode 100644
index 0000000..8176ced
--- /dev/null
+++ b/Tests/RunCMake/FindBoost/CMakePackage/BoostConfigVersion.cmake
@@ -0,0 +1,7 @@
+set(PACKAGE_VERSION 1.12345)
+if(PACKAGE_FIND_VERSION_MAJOR EQUAL 1)
+ set(PACKAGE_VERSION_COMPATIBLE 1)
+ if(PACKAGE_FIND_VERSION_MINOR EQUAL 12345)
+ set(PACKAGE_VERSION_EXACT 1)
+ endif()
+endif()