diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2019-07-06 00:01:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-07-16 11:48:40 (GMT) |
commit | 0ba5891eadbfd533f0ab30c90966bce07e5fbef8 (patch) | |
tree | 392a4016cdd19fe04ce83a7f701c3421450f35f0 /Source/cmPolicies.h | |
parent | 5f8466980696cc13653766d6c6255c40a896acb7 (diff) | |
download | CMake-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 'Source/cmPolicies.h')
-rw-r--r-- | Source/cmPolicies.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h index c16a46f..e0f48de 100644 --- a/Source/cmPolicies.h +++ b/Source/cmPolicies.h @@ -283,7 +283,10 @@ class cmMakefile; SELECT(POLICY, CMP0095, \ "RPATH entries are properly escaped in the intermediary CMake " \ "install script.", \ - 3, 16, 0, cmPolicies::WARN) + 3, 16, 0, cmPolicies::WARN) \ + SELECT(POLICY, CMP0096, \ + "project() preserves leading zeros in version components.", 3, 16, \ + 0, cmPolicies::WARN) #define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1) #define CM_FOR_EACH_POLICY_ID(POLICY) \ |