From 8a8941b853ba5ccecc65cf55222c6c129e92d675 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 30 Mar 2020 00:13:20 +0300 Subject: project: minor-ish refactoring --- project/cmake/build.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'project/cmake') 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: -- cgit v1.2.3