diff options
author | m-holger <m-holger@kubitscheck.org> | 2023-07-10 14:28:39 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2023-12-16 17:38:00 +0100 |
commit | 17c5b950c882221982e89e06de5689e02e2f6fb4 (patch) | |
tree | 02e9d5ddb752e243353649862976828591e7f2f0 | |
parent | d7a364b882be44c93dc4a843bcca2ae63e805c2c (diff) | |
download | qpdf-17c5b950c882221982e89e06de5689e02e2f6fb4.tar.zst |
For 'FUTURE' builds add "+future" to version string
Also, change so version to 0.
-rw-r--r-- | CMakeLists.txt | 10 | ||||
-rw-r--r-- | include/qpdf/DLL.h | 7 |
2 files changed, 14 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 31ee01ef..fb9d4b28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -147,8 +147,14 @@ endif() # increment SOVERSION every time we increment the project major # version. This works because qpdf uses semantic versioning. qpdf 10.x # was libqpdf28, so start from there. -math(EXPR qpdf_SOVERSION "${PROJECT_VERSION_MAJOR} + 18") -set(qpdf_LIBVERSION ${qpdf_SOVERSION}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}) + +if(FUTURE) + math(EXPR qpdf_SOVERSION 0) + set(qpdf_LIBVERSION 0) +else() + math(EXPR qpdf_SOVERSION "${PROJECT_VERSION_MAJOR} + 18") + set(qpdf_LIBVERSION ${qpdf_SOVERSION}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}) +endif() if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) message(FATAL_ERROR " diff --git a/include/qpdf/DLL.h b/include/qpdf/DLL.h index 6dd5137e..8279da03 100644 --- a/include/qpdf/DLL.h +++ b/include/qpdf/DLL.h @@ -27,7 +27,12 @@ #define QPDF_MAJOR_VERSION 11 #define QPDF_MINOR_VERSION 7 #define QPDF_PATCH_VERSION 0 -#define QPDF_VERSION "11.7.0" + +#ifdef QPDF_FUTURE +# define QPDF_VERSION "11.7.0+future" +#else +# define QPDF_VERSION "11.7.0" +#endif /* * This file defines symbols that control the which functions, |