[vlmc-devel] cmake: Use PROJECT_VERSION instead of CPACK_PACKAGE_VERSION

Hugo Beauzée-Luyssen git at videolan.org
Fri Apr 1 23:56:15 CEST 2016


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Apr  1 23:26:41 2016 +0200| [5da46d54964c878472a71c05c016d3b5dfdb80ab] | committer: Hugo Beauzée-Luyssen

cmake: Use PROJECT_VERSION instead of CPACK_PACKAGE_VERSION

> https://code.videolan.org/videolan/vlmc/commit/5da46d54964c878472a71c05c016d3b5dfdb80ab
---

 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1345e70..a95b292 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -247,7 +247,7 @@ INCLUDE ( ${CMAKE_MODULE_PATH}/DpkgBuild.cmake )
 IF ( DPKG_FOUND AND NOT WIN32 )
     SET(CPACK_GENERATOR "DEB")
     SET(CPACK_DEBIAN_PACKAGE_NAME ${CPACK_PACKAGE_NAME})
-    SET(CPACK_DEBIAN_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION})
+    SET(CPACK_DEBIAN_PACKAGE_VERSION ${PROJECT_VERSION})
     SET(CPACK_DEBIAN_PACKAGE_DESCRIPTION ${CPACK_PACKAGE_DESCRIPTION_SUMMARY})
     SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "${CPACK_PACKAGE_VENDOR} <${CPACK_PACKAGE_CONTACT}>")
     SET(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")



More information about the Vlmc-devel mailing list