summaryrefslogtreecommitdiff
path: root/share/qbs/module-providers/qbspkgconfig.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'share/qbs/module-providers/qbspkgconfig.qbs')
-rw-r--r--share/qbs/module-providers/qbspkgconfig.qbs7
1 files changed, 6 insertions, 1 deletions
diff --git a/share/qbs/module-providers/qbspkgconfig.qbs b/share/qbs/module-providers/qbspkgconfig.qbs
index 92d5fda71..599f76d33 100644
--- a/share/qbs/module-providers/qbspkgconfig.qbs
+++ b/share/qbs/module-providers/qbspkgconfig.qbs
@@ -52,7 +52,12 @@ ModuleProvider {
property stringList extraPaths
property stringList libDirs
property bool staticMode: false
- property path sysroot: qbs.sysroot
+
+ // We take the sysroot default from qbs.sysroot, except for Xcode toolchains, where
+ // the sysroot points into the Xcode installation and does not contain .pc files.
+ property path sysroot: qbs.toolchain && qbs.toolchain.includes("xcode")
+ ? undefined : qbs.sysroot
+
property bool mergeDependencies: true
relativeSearchPaths: {