• Brad King's avatar
    CPack: Restore support for 0-valued version components · ed015bde
    Brad King authored
    In commit v3.12.0-rc1~136^2 (CPack: Use project version as default for
    `CPACK_PACKAGE_VERSION`, 2018-04-29) we did not account for the value of
    `CMAKE_PROJECT_VERSION_{MAJOR,MINOR,PATCH}` having `0`.  Fix the logic
    to distinguish between unprovided version components and `0` components.
    
    While at it, add a test case covering the behavior described in the
    documentation by the original commit.  The number of version components
    in the package name should match those provided to the `project()`
    command `VERSION` option.
    
    Fixes: #18199
    ed015bde
Name
Last commit
Last update
..
CMakeLists.txt Loading commit data...
Default-check.cmake Loading commit data...
Default.cmake Loading commit data...
RunCMakeTest.cmake Loading commit data...
Simple-check.cmake Loading commit data...
Simple.cmake Loading commit data...
Special-check.cmake Loading commit data...
Special.cmake Loading commit data...
Verbatim-check.cmake Loading commit data...
Verbatim.cmake Loading commit data...
Version1-check.cmake Loading commit data...
Version1.cmake Loading commit data...
Version2-check.cmake Loading commit data...
Version2.cmake Loading commit data...
Version3-check.cmake Loading commit data...
Version3.cmake Loading commit data...
check.cmake Loading commit data...