diff --git a/cmake/CPackConfig.cmake b/cmake/CPackConfig.cmake index ba6e63c..3f668fb 100644 --- a/cmake/CPackConfig.cmake +++ b/cmake/CPackConfig.cmake @@ -3,15 +3,15 @@ set(CPACK_PACKAGING_INSTALL_PREFIX /usr) set(CPACK_PACKAGE_CONTACT "Ilya Andreev ") set(CPACK_DEB_COMPONENT_INSTALL ON) -set(CPACK_DEBIAN_RUNTIME_PACKAGE_NAME "libtmp${PROJECT_VERSION_MAJOR}") -set(CPACK_DEBIAN_DEVELOPMENT_PACKAGE_NAME "libtmp${PROJECT_VERSION_MAJOR}-dev") +set(CPACK_DEBIAN_RUNTIME_PACKAGE_NAME "libtmp${CPACK_PACKAGE_VERSION_MAJOR}") +set(CPACK_DEBIAN_DEVELOPMENT_PACKAGE_NAME "libtmp${CPACK_PACKAGE_VERSION_MAJOR}-dev") set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT) set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS ON) set(CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS_POLICY ">=") set(CPACK_DEBIAN_DEVELOPMENT_PACKAGE_DEPENDS - "libstdc++-dev, libtmp${PROJECT_VERSION_MAJOR} (= ${PROJECT_VERSION})") + "libstdc++-dev, libtmp${CPACK_PACKAGE_VERSION_MAJOR} (= ${CPACK_PACKAGE_VERSION})") set(CPACK_DEBIAN_RUNTIME_DESCRIPTION "Runtime package") set(CPACK_DEBIAN_DEVELOPMENT_DESCRIPTION "Development package")