Use " instead of ' to quote package names when invoking pkg-config.
Since ' breaks on windows.
This commit is contained in:
parent
760f12f165
commit
e723064d2c
1 changed files with 1 additions and 1 deletions
2
scons/pkgconfig.py
Normal file → Executable file
2
scons/pkgconfig.py
Normal file → Executable file
|
@ -5,7 +5,7 @@ import os
|
|||
def run_pkg_config(env, name):
|
||||
try:
|
||||
env["ENV"]["PKG_CONFIG_PATH"] = os.environ.get("PKG_CONFIG_PATH")
|
||||
env.ParseConfig("pkg-config --libs --cflags $PKGCONFIG_FLAGS '" + name + "'")
|
||||
env.ParseConfig("pkg-config --libs --cflags $PKGCONFIG_FLAGS \"" + name + "\"")
|
||||
return True
|
||||
except OSError:
|
||||
return False
|
||||
|
|
Loading…
Add table
Reference in a new issue