aboutsummaryrefslogtreecommitdiffstats
path: root/src/qtcreatorplugin.pri
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2016-05-12 14:06:42 +0200
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2016-05-13 10:42:18 +0000
commit87e8f03c0300360c9aff30a75e4bf86f1aa21ee0 (patch)
tree50bae69ec99ffd08f604a913774f8d0a8151ef0e /src/qtcreatorplugin.pri
parent7c5836986f0fc188f7be4b660f9e55d925d87277 (diff)
Set the right version number on our binaries.
While we have not encountered issues so far with using the default values, it seems more correct to set the version so that e.g. on Unix a library's soname contains the actual Qt Creator major version etc. For good measure, also set the compatibility version on OS X. Change-Id: I956c473e0b440fc87ffe1aaf99af626da733b5fb Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/qtcreatorplugin.pri')
-rw-r--r--src/qtcreatorplugin.pri5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qtcreatorplugin.pri b/src/qtcreatorplugin.pri
index 6b433fea23..f86de2c313 100644
--- a/src/qtcreatorplugin.pri
+++ b/src/qtcreatorplugin.pri
@@ -84,7 +84,10 @@ exists($$PLUGINJSON_IN) {
DISTFILES += $$PLUGINJSON
}
-osx: QMAKE_LFLAGS_SONAME = -Wl,-install_name,@rpath/PlugIns/
+osx {
+ QMAKE_LFLAGS_SONAME = -Wl,-install_name,@rpath/PlugIns/
+ QMAKE_LFLAGS += -compatibility_version $$QTCREATOR_COMPAT_VERSION
+}
include(rpath.pri)
contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols