summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qbs_version.pri1
-rw-r--r--src/lib/use.pri6
2 files changed, 5 insertions, 2 deletions
diff --git a/qbs_version.pri b/qbs_version.pri
index 19bec18ea..2669469c0 100644
--- a/qbs_version.pri
+++ b/qbs_version.pri
@@ -1,2 +1,3 @@
QBS_VERSION = 1.1.0
+QBS_VERSION_MAJ = $$section(QBS_VERSION, ., 0, 0)
DEFINES += QBS_VERSION=\\\"$$QBS_VERSION\\\"
diff --git a/src/lib/use.pri b/src/lib/use.pri
index ac244e7ca..28e6d9df3 100644
--- a/src/lib/use.pri
+++ b/src/lib/use.pri
@@ -1,3 +1,5 @@
+include(../../qbs_version.pri)
+
isEmpty(QBSLIBDIR) {
QBSLIBDIR = $$OUT_PWD/../../../lib
}
@@ -15,10 +17,10 @@ unix {
win32 {
CONFIG(debug, debug|release) {
- QBSCORELIB = qbscored
+ QBSCORELIB = qbscored$$QBS_VERSION_MAJ
}
CONFIG(release, debug|release) {
- QBSCORELIB = qbscore
+ QBSCORELIB = qbscore$$QBS_VERSION_MAJ
}
win32-msvc* {
LIBS += /LIBPATH:$$QBSLIBDIR