diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-29 00:02:48 +0000 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-29 00:02:48 +0000 |
commit | 95c97750137e4a9af144ac8531aed392501d7095 (patch) | |
tree | 6c3019e104fb323e7a5293da63dc5c4ac49960f7 /project/utils.py | |
parent | project.boost: factor out everything else (diff) | |
download | cmake-common-95c97750137e4a9af144ac8531aed392501d7095.tar.gz cmake-common-95c97750137e4a9af144ac8531aed392501d7095.zip |
project.cmake: factor out common utils
Diffstat (limited to 'project/utils.py')
-rw-r--r-- | project/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/project/utils.py b/project/utils.py index a766f90..9d986b0 100644 --- a/project/utils.py +++ b/project/utils.py @@ -42,6 +42,10 @@ def run(cmd_line): return subprocess.run(cmd_line, check=True) +def run_cmake(cmake_args): + return run(['cmake'] + cmake_args) + + def on_windows(): return platform.system() == 'Windows' |