summaryrefslogtreecommitdiffstats
path: root/libraries/qwt-qt5/patch-6.1.6-qwtfunctions.diff
blob: b31dc22de61a3b082f7c936d32c4ac6471002940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff -up qwt-6.1.2/qwtfunctions.pri.qt5 qwt-6.1.2/qwtfunctions.pri
--- qwt-6.1.2/qwtfunctions.pri.qt5	2014-12-11 08:13:13.511186492 -0600
+++ qwt-6.1.2/qwtfunctions.pri	2014-12-12 20:45:24.556261966 -0600
@@ -12,7 +12,12 @@
 defineReplace(qwtLibraryTarget) {
 
     unset(LIBRARY_NAME)
+
+    greaterThan(QT_MAJOR_VERSION, 4) {
+    LIBRARY_NAME = $${1}-qt$${QT_MAJOR_VERSION}
+    } else {
     LIBRARY_NAME = $$1
+    }
 
     mac:contains(QWT_CONFIG, QwtFramework) {
 
@@ -36,7 +41,11 @@ defineReplace(qwtLibraryTarget) {
 defineTest(qwtAddLibrary) {
 
     LIB_PATH = $$1
+    greaterThan(QT_MAJOR_VERSION, 4) {
+    LIB_NAME = $${2}-qt$${QT_MAJOR_VERSION}
+    } else {
     LIB_NAME = $$2
+    }
 
     mac:contains(QWT_CONFIG, QwtFramework) {