mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-21 22:20:48 -06:00
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>
10 lines
310 B
CMake
10 lines
310 B
CMake
include(PrintVersions.cmake)
|
|
|
|
# Test leading zeros motivating this policy.
|
|
project(DateVersion VERSION 2019.07.06 LANGUAGES NONE)
|
|
print_versions(DateVersion)
|
|
|
|
# Overflow version component in OLD behavior.
|
|
project(LongVersion VERSION 4294967297 #[[ uint32_max + 2 ]] LANGUAGES NONE)
|
|
print_versions(LongVersion)
|