summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/project/CMP0096-OLD.cmake
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2019-07-06 00:01:38 (GMT)
committerBrad King <brad.king@kitware.com>2019-07-16 11:48:40 (GMT)
commit0ba5891eadbfd533f0ab30c90966bce07e5fbef8 (patch)
tree392a4016cdd19fe04ce83a7f701c3421450f35f0 /Tests/RunCMake/project/CMP0096-OLD.cmake
parent5f8466980696cc13653766d6c6255c40a896acb7 (diff)
downloadCMake-0ba5891eadbfd533f0ab30c90966bce07e5fbef8.zip
CMake-0ba5891eadbfd533f0ab30c90966bce07e5fbef8.tar.gz
CMake-0ba5891eadbfd533f0ab30c90966bce07e5fbef8.tar.bz2
project: Keep leading `0` in PROJECT_VERSION components
Introduce CMake policy `CMP0096` to make `project()` keep leading zeros in version components. As a side effect, it now allows really long version numbers. Fixes: #19421 Co-Author: Brad King <brad.king@kitware.com>
Diffstat (limited to 'Tests/RunCMake/project/CMP0096-OLD.cmake')
-rw-r--r--Tests/RunCMake/project/CMP0096-OLD.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/project/CMP0096-OLD.cmake b/Tests/RunCMake/project/CMP0096-OLD.cmake
new file mode 100644
index 0000000..25a3b19
--- /dev/null
+++ b/Tests/RunCMake/project/CMP0096-OLD.cmake
@@ -0,0 +1,3 @@
+cmake_policy(SET CMP0048 NEW)
+cmake_policy(SET CMP0096 OLD)
+include(CMP0096-common.cmake)