From b02a8cbf3d4d6a96732f29937f87525a823a0045 Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Sat, 19 Jan 2013 21:51:52 +0000 Subject: [PATCH] Set the package version number --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f498110c..eeaf5002 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -205,6 +205,9 @@ install(TARGETS ${PROJECT_NAME} DESTINATION bin/) #= Packaging (handled by CPack) #------------------------------------------------------------------------------- +set(CPACK_PACKAGE_VERSION_MAJOR ${PV_VERSION_MAJOR}) +set(CPACK_PACKAGE_VERSION_MINOR ${PV_VERSION_MINOR}) +set(CPACK_PACKAGE_VERSION_PATCH ${PV_VERSION_MICRO}) set(CPACK_PACKAGE_DESCRIPTION_FILE ${CMAKE_CURRENT_SOURCE_DIR}/README) set(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_CURRENT_SOURCE_DIR}/COPYING) set(CPACK_SOURCE_IGNORE_FILES ${CMAKE_CURRENT_BINARY_DIR} ".gitignore" ".git") -- 2.30.2