diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-30 00:13:20 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-30 00:53:14 +0300 |
commit | 8a8941b853ba5ccecc65cf55222c6c129e92d675 (patch) | |
tree | d3a251cdfe4be68914f43103876d908930314bb4 /project/cmake/build.py | |
parent | project.boost: first-class MinGW-w64 support (diff) | |
download | cmake-common-8a8941b853ba5ccecc65cf55222c6c129e92d675.tar.gz cmake-common-8a8941b853ba5ccecc65cf55222c6c129e92d675.zip |
project: minor-ish refactoring
Diffstat (limited to '')
-rw-r--r-- | project/cmake/build.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/project/cmake/build.py b/project/cmake/build.py index 5355c0b..df7b764 100644 --- a/project/cmake/build.py +++ b/project/cmake/build.py @@ -45,6 +45,10 @@ from project.configuration import Configuration import project.utils +def run_cmake(cmake_args): + return project.utils.run(['cmake'] + cmake_args) + + class GenerationPhase: def __init__(self, build_dir, params): self.build_dir = build_dir @@ -66,7 +70,7 @@ class GenerationPhase: return result def run(self): - project.utils.run_cmake(self._cmake_args()) + run_cmake(self._cmake_args()) class BuildPhase: @@ -87,7 +91,7 @@ class BuildPhase: return result def run(self): - project.utils.run_cmake(self._cmake_args()) + run_cmake(self._cmake_args()) class BuildParameters: |