summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPackConfig/Version2-check.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2018-07-29 09:40:31 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-07-29 09:40:37 (GMT)
commit50e40b7eecf2ca9aca73b6a907227e8191fffe56 (patch)
treeddcfdfe660cab0410fe3591c0ec3b6b8c8ef6263 /Tests/RunCMake/CPackConfig/Version2-check.cmake
parent7a7e4e9ea323839263dc75cb87e80502a5447d7f (diff)
parented015bde2b6fe526f5f840f43c1c12ba45d5663f (diff)
downloadCMake-50e40b7eecf2ca9aca73b6a907227e8191fffe56.zip
CMake-50e40b7eecf2ca9aca73b6a907227e8191fffe56.tar.gz
CMake-50e40b7eecf2ca9aca73b6a907227e8191fffe56.tar.bz2
Merge topic 'cpack-default-package-version-zero'
ed015bde2b CPack: Restore support for 0-valued version components Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2239
Diffstat (limited to 'Tests/RunCMake/CPackConfig/Version2-check.cmake')
-rw-r--r--Tests/RunCMake/CPackConfig/Version2-check.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPackConfig/Version2-check.cmake b/Tests/RunCMake/CPackConfig/Version2-check.cmake
new file mode 100644
index 0000000..3a2d572
--- /dev/null
+++ b/Tests/RunCMake/CPackConfig/Version2-check.cmake
@@ -0,0 +1,6 @@
+include(${RunCMake_SOURCE_DIR}/check.cmake)
+
+test_variable(CPACK_PACKAGE_VERSION "1.0")
+test_variable(CPACK_PACKAGE_VERSION_MAJOR "1")
+test_variable(CPACK_PACKAGE_VERSION_MINOR "0")
+test_variable(CPACK_PACKAGE_VERSION_PATCH "")