diff options
author | Julian Andres Klode <jak@debian.org> | 2016-08-08 22:12:16 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-08-10 16:17:19 +0200 |
commit | 66eae02467da6304025d7becc878306a0cd92011 (patch) | |
tree | ba0b1bfb1195e0992b969b3f4917f66ea19cdf4b /CMakeLists.txt | |
parent | 10ec2d23f14cf5d3e4835d9bcb57d0937f803e6a (diff) | |
download | apt-66eae02467da6304025d7becc878306a0cd92011.tar.gz |
prepare-release: Switch over to CMake, set version in CMakeLists.txt
Teach the prepare-release script about the version new locations
and also set the version in CMakeLists, as that is better than
reading it from the changelog: CMake would not rerun automatically
otherwise if the version changed.
Gbp-Dch: ignore
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index aed0b506d..1f9ca02b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,11 +113,8 @@ endif() # Configure some variables like package, version and architecture. set(PACKAGE ${PROJECT_NAME}) set(PACKAGE_MAIL "APT Development Team <deity@lists.debian.org>") +set(PACKAGE_VERSION "1.3~pre3+cmake2") -if (NOT DEFINED PACKAGE_VERSION) - execute_process(COMMAND dpkg-parsechangelog -SVersion -l${PROJECT_SOURCE_DIR}/debian/changelog - OUTPUT_VARIABLE PACKAGE_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE) -endif() if (NOT DEFINED COMMON_ARCH) execute_process(COMMAND dpkg-architecture -qDEB_HOST_ARCH OUTPUT_VARIABLE COMMON_ARCH OUTPUT_STRIP_TRAILING_WHITESPACE) |