diff options
Diffstat (limited to 'BuildTools/SCons')
-rw-r--r-- | BuildTools/SCons/Tools/qt4.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/BuildTools/SCons/Tools/qt4.py b/BuildTools/SCons/Tools/qt4.py index f4b59e3..1c82324 100644 --- a/BuildTools/SCons/Tools/qt4.py +++ b/BuildTools/SCons/Tools/qt4.py @@ -44,6 +44,8 @@ import SCons.Scanner import SCons.Tool import SCons.Util +Import("conf_env") + class ToolQtWarning(SCons.Warnings.Warning): pass @@ -503,13 +505,14 @@ def enable_modules(self, modules, debug=False, crosscompiling=False, version='4' return else: test_env = self.Clone() + test_conf = Configure(test_env) modules_str = " ".join(modules) if not version == '4' : modules_str = modules_str.replace('Qt', 'Qt5') # Check if Qt is registed at pkg-config - ret = test_env.TryAction('pkg-config --exists \'%s\'' % modules_str)[0] - test_env.Result( ret ) + ret = test_conf.TryAction('pkg-config --exists \'%s\'' % modules_str)[0] + test_conf.Result( ret ) if not ret: print("Qt not found.") return |