Ver código fonte

CMake: Set PACKAGE_MAIL variable

This is needed in a lot of places. Also adjust config.h.in to use
it instead of the bare email address.

Gbp-Dch: ignore
Julian Andres Klode 10 anos atrás
pai
commit
33ee08e4da
2 arquivos alterados com 3 adições e 2 exclusões
  1. 1 1
      CMake/config.h.in
  2. 2 1
      CMakeLists.txt

+ 1 - 1
CMake/config.h.in

@@ -44,7 +44,7 @@
 #define PACKAGE_VERSION "${PACKAGE_VERSION}"
 
 /* The mail address to reach upstream */
-#define PACKAGE_MAIL "deity@lists.debian.org"
+#define PACKAGE_MAIL "${PACKAGE_MAIL}"
 
 #define APT_8_CLEANER_HEADERS
 #define APT_9_CLEANER_HEADERS

+ 2 - 1
CMakeLists.txt

@@ -108,7 +108,8 @@ if (CMAKE_USE_PTHREADS_INIT)
 endif()
 
 # Configure some variables like package, version and architecture.
-set(PACKAGE "apt")
+set(PACKAGE ${PROJECT_NAME})
+set(PACKAGE_MAIL "APT Development Team <deity@lists.debian.org>")
 
 execute_process(COMMAND dpkg-parsechangelog -SVersion -l${PROJECT_SOURCE_DIR}/debian/changelog
                 OUTPUT_VARIABLE PACKAGE_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)