From d5795c04b385f7855df4d774423a7c27c6357c76 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 18 Jan 2021 02:03:48 +0300 Subject: project.cmake: create the build dir if necessary --- project/cmake/build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/project/cmake/build.py b/project/cmake/build.py index 6bc7772..d2c2070 100644 --- a/project/cmake/build.py +++ b/project/cmake/build.py @@ -153,6 +153,8 @@ class BuildParameters: def create_build_dir(self): if self.build_dir is not None: logging.info('Build directory: %s', self.build_dir) + if not os.path.exists(self.build_dir): + os.makedirs(self.build_dir, exist_ok=True) yield self.build_dir return -- cgit v1.2.3