summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--subsurface-configure.pri3
1 files changed, 2 insertions, 1 deletions
diff --git a/subsurface-configure.pri b/subsurface-configure.pri
index c06d1c14d..903d6a84d 100644
--- a/subsurface-configure.pri
+++ b/subsurface-configure.pri
@@ -28,7 +28,8 @@ CONFIG += exceptions_off
# Check if we have pkg-config
equals($$QMAKE_HOST.os, "Windows"):NUL=NUL
else:NUL=/dev/null
-system(pkg-config --version 2>$$NUL >$$NUL) {
+PKG_CONFIG_OUT = $$system(pkg-config --version 2> $$NUL)
+!isEmpty(PKG_CONFIG_OUT) {
CONFIG += link_pkgconfig
} else {
message("pkg-config not found, no detection performed. See README for details")