aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/GpgmeppConfigVersion.cmake.in
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-11-02 13:43:44 +0000
committerAndre Heinecke <[email protected]>2016-11-02 13:43:44 +0000
commitbf9aa0ccf7b0165aa3a1af2bdb18daca7c02ce74 (patch)
tree42c906748e1764b0335f89ac73ed808d6be49a40 /lang/cpp/src/GpgmeppConfigVersion.cmake.in
parentqt: Install cmake config into qgpgme subdir (diff)
downloadgpgme-bf9aa0ccf7b0165aa3a1af2bdb18daca7c02ce74.tar.gz
gpgme-bf9aa0ccf7b0165aa3a1af2bdb18daca7c02ce74.zip
qt, cpp: Fix versioning in cmake config and header
* configure.ac (VERSION_MAJOR, VERSION_MINOR, VERSION_MICRO): New subst variables for the version header. * lang/cpp/src/GpgmeppConfigVersion.cmake.in, lang/cpp/src/gpgmepp_version.h.in, lang/qt/src/QGpgmeConfigVersion.cmake.in, lang/qt/src/qgpgme_version.h.in: Use new variables. -- Using the LT_* variables was just wrong. Reporting the package version also makes more sense then the library version. Having different versions might make ABI breaks more visible by increasing the major version number, but to have different versions in the same package is too confusing imo and gpgme uses a versioning that is unrelated to the library version number.
Diffstat (limited to 'lang/cpp/src/GpgmeppConfigVersion.cmake.in')
-rw-r--r--lang/cpp/src/GpgmeppConfigVersion.cmake.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/cpp/src/GpgmeppConfigVersion.cmake.in b/lang/cpp/src/GpgmeppConfigVersion.cmake.in
index 43d65127..259bddd5 100644
--- a/lang/cpp/src/GpgmeppConfigVersion.cmake.in
+++ b/lang/cpp/src/GpgmeppConfigVersion.cmake.in
@@ -19,7 +19,7 @@
# 02111-1307, USA
# based on a generated file from cmake.
-set(PACKAGE_VERSION "@LIBGPGMEPP_LT_CURRENT@.@LIBGPGMEPP_LT_AGE@.@LIBGPGMEPP_LT_REVISION@.@BUILD_REVISION@")
+set(PACKAGE_VERSION "@VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_MICRO@")
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}" )
set(PACKAGE_VERSION_COMPATIBLE FALSE)