List Archive

Thread

Thread Index

Message

From: Michał Janiszewski <janisozaur%gmail.com@localhost>
To: libzip mailing list <libzip-discuss%nih.at@localhost>
Subject: Fix version macro
Date: Tue, 21 Nov 2017 16:35:09 +0100

Hi,
This patch fixes LIBZIP_VERSION macro name for CMake-based builds, including MSVC.

diff --git a/cmake-config.h.in b/cmake-config.h.in
index 0d1839c..dd450ff 100644
--- a/cmake-config.h.in
+++ b/cmake-config.h.in
@@ -60,7 +60,7 @@
 #cmakedefine WORDS_BIGENDIAN
 /* END DEFINES */
 #define PACKAGE "@PACKAGE@"
-#define VERSION "@VERSION@"
+#define LIBZIP_VERSION "@VERSION@"
 
 #ifndef HAVE_SSIZE_T_LIBZIP
 #  if SIZE_T_LIBZIP == INT_LIBZIP


Other than that there are currently multiple other versions mentioned:
* 1.3.1a (xcode/config.h)
* 1.0.1a (xcode/config.h)
* 0.11 (xcode/zipconf.h)

--
Michal Janiszewski

Made by MHonArc.