diff --git a/CMakeLists.txt b/CMakeLists.txt index 18468df7..0a4ab731 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ()