summaryrefslogtreecommitdiff
blob: 51a811dbb33f966ce47194edf15be962eb67e717 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/src/Cutter.pro	2018-04-24 17:43:11.000000000 +0900
+++ b/src/Cutter.pro	2018-07-08 21:21:34.280748499 +0900
@@ -74,11 +74,13 @@
         LIBS += -F$$PYTHON_FRAMEWORK_DIR -framework Python
         DEFINES += MACOS_PYTHON_FRAMEWORK_BUNDLED
     } else {
-        CONFIG += link_pkgconfig
-        !packagesExist(python3) {
-            error("ERROR: Python 3 could not be found. Make sure it is available to pkg-config.")
+        system(type python3-config) {
+            LIBS += $$system(python3-config --libs)
+            TMP = $$system(python3-config --includes)
+            INCLUDEPATH += $$replace(TMP, "-I", "")
+        } else {
+            error("ERROR: Python 3 could not be found. Make sure it is available to python3-config.")
         }
-        PKGCONFIG += python3
     }
 }