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,