mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
subsurface-configure.pri: pkg-config detection change
This is a small change, but it seems to work as expected on both Linux and Win32. What happens if 2> NUL > NUL is used on Win32 for cmd.exe is that the output of both stdout and stderr seems to pipe into NUL and pkg-config is always reported as missing. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9a37d64826
commit
a3ee9a1142
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue