[buildcore] Remove whole --target option from cmake --build command (for CMake 3.20)

This commit is contained in:
Gary Talent 2021-03-27 23:16:04 -05:00
parent 77fbb95479
commit 2c09de230c

View File

@ -33,9 +33,9 @@ def cmake_build(base_path, target):
# nothing to build
return 0
for d in os.listdir(base_path):
args = ['cmake', '--build', os.path.join(base_path, d), '--target']
args = ['cmake', '--build', os.path.join(base_path, d)]
if target is not None:
args.append(target)
args.extend(['--target', target])
err = subprocess.run(args).returncode
if err != 0:
return err