[buildcore] Make cmake-build command ignore build directories that are not directories
This commit is contained in:
parent
f8eaf9b325
commit
aff3b04fe2
5
deps/buildcore/scripts/pybb.py
vendored
5
deps/buildcore/scripts/pybb.py
vendored
@ -52,7 +52,10 @@ def cmake_build(base_path: str, target: Optional[str]) -> int:
|
||||
# nothing to build
|
||||
return 0
|
||||
for d in os.listdir(base_path):
|
||||
args = ['cmake', '--build', os.path.join(base_path, d)]
|
||||
path = os.path.join(base_path, d)
|
||||
if not os.path.isdir(path):
|
||||
continue
|
||||
args = ['cmake', '--build', path]
|
||||
if target is not None:
|
||||
args.extend(['--target', target])
|
||||
err = subprocess.run(args).returncode
|
||||
|
Loading…
Reference in New Issue
Block a user