2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-10 06:02:27 +00:00

For 'FUTURE' builds add "(Future)" to version string

Also, change so version to 0.
This commit is contained in:
m-holger 2023-07-10 13:28:39 +01:00
parent 81823f4032
commit 49dc935d5b
2 changed files with 15 additions and 4 deletions

View File

@ -147,10 +147,16 @@ 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(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
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 "
Please build with cmake in a subdirectory, e.g.
mkdir build

View File

@ -27,7 +27,12 @@
#define QPDF_MAJOR_VERSION 11
#define QPDF_MINOR_VERSION 6
#define QPDF_PATCH_VERSION 3
#define QPDF_VERSION "11.6.3"
#ifdef QPDF_FUTURE
# define QPDF_VERSION "11.6.3(Future)"
#else
# define QPDF_VERSION "11.6.3"
#endif // QPDF_FUTURE
/*
* This file defines symbols that control the which functions,