]> granicus.if.org Git - zziplib/commitdiff
cmake ZZIP_PACKAGE_VERSION and NAME
authorGuido Draheim <guidod@gmx.de>
Sun, 26 May 2019 10:53:27 +0000 (12:53 +0200)
committerGuido Draheim <guidod@gmx.de>
Sun, 26 May 2019 10:53:27 +0000 (12:53 +0200)
zzip/CMakeLists.txt

index 2cfa46e915b28bf1c4cd68318d967de5ec231688..8ba8dab5846a165f01d29db72be71824dd5683da 100644 (file)
@@ -18,6 +18,11 @@ option(ZZIPFSEEKO "Build libzzipfseeko (based on posix.1 api)" ON)
 option(ZZIPCOMPAT "Build compatibility with old libzzip releases" ON)
 option(ZZIPLIBTOOL "Ensure binary compatibility with libtool" ON)
 
+# used in zzip/_config.h
+set(ZZIP_PACKAGE "${PROJECT_NAME}")
+set(ZZIP_VERSION "${PROJECT_VERSION}")
+set(ZZIP_PACKAGE_NAME "${PROJECT_NAME}")
+set(ZZIP_PACKAGE_VERSION "${PROJECT_VERSION}")
 
 if(ZZIPCOMPAT)
 find_package ( UnixCommands REQUIRED ) # bash cp mv rm gzip tar