project: fix the bug of identifying env_set logic

Change-Id: Idb13d1e98d9ddf3ae4f68aec27c08e4e25dc1d36
This commit is contained in:
Ming Rui Zhang
2019-12-05 13:56:07 -05:00
parent f1bd5c9909
commit 31b8adf195

View File

@ -180,7 +180,7 @@ def make(pkg_info, force, sdk_version, toolset):
if (should_fetch or force) and fetch_pkg(pkg_name, version, pkg_info['url'], force):
apply(pkg_name, pkg_info.get('patches', []),
pkg_info.get('win_patches', []))
env_set = 'false' if pkg_info.get('with_env', '') != '' else 'true'
env_set = 'false' if pkg_info.get('with_env', '') == '' else 'true'
sdk_to_use = sdk_version if env_set == 'false' else pkg_info.get('with_env', '')
if build(pkg_name,
contrib_build_dir + '\\' + pkg_name,