aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/utils.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-03-29 00:02:48 +0000
committerEgor Tensin <Egor.Tensin@gmail.com>2020-03-29 00:02:48 +0000
commit95c97750137e4a9af144ac8531aed392501d7095 (patch)
tree6c3019e104fb323e7a5293da63dc5c4ac49960f7 /project/utils.py
parentproject.boost: factor out everything else (diff)
downloadcmake-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.py4
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'