Skip to content

Commit

Permalink
Use subprocess.check_call() in build.py
Browse files Browse the repository at this point in the history
  • Loading branch information
t-sommer committed Nov 24, 2023
1 parent 263ce18 commit 60e4c86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def build_fmus(fmi_version, fmi_type=None):
'..'
]

subprocess.call(['cmake'] + cmake_options, cwd=build_dir)
subprocess.call(['cmake', '--build', '.', '--target', 'install', '--config', 'Release'], cwd=build_dir)
subprocess.check_call(['cmake'] + cmake_options, cwd=build_dir)
subprocess.check_call(['cmake', '--build', '.', '--target', 'install', '--config', 'Release'], cwd=build_dir)

fmus_dir = parent_dir / 'fmus' / f'{fmi_version}.0'

Expand Down

0 comments on commit 60e4c86

Please sign in to comment.