cmake: Support pre-release versions

This commit is contained in:
evpobr 2021-05-25 17:10:29 +05:00
parent 85aea74e57
commit 8cb0169f58

View File

@ -1557,5 +1557,8 @@ if (BUILD_TESTING)
endif ()
if (ENABLE_CPACK)
if ((NOT CPACK_PACKAGE_VERSION) AND CPACK_PACKAGE_VERSION_STAGE)
set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_FULL}")
endif ()
include (CPack)
endif ()