Build CMake command for the build phase and execute it
(self)
| 656 | run_cmake_command(cmake_cmd) |
| 657 | |
| 658 | def CMakeBuild(self): |
| 659 | """Build CMake command for the build phase and execute it""" |
| 660 | cmake_cmd = ['cmake', '--build', self.build_dir, '--target', 'install', '--config', CONFIG_MAP[self._args.config]] |
| 661 | if self._args.do_clean: |
| 662 | cmake_cmd.append('--clean-first') |
| 663 | |
| 664 | # Xcode / Ninja are parallel by default. |
| 665 | if self._args.generator != "Ninja" or self._args.generator != "Xcode": |
| 666 | cmake_cmd.append('--parallel') |
| 667 | cmake_cmd.append(format(multiprocessing.cpu_count())) |
| 668 | |
| 669 | run_cmake_command(cmake_cmd) |
| 670 | |
| 671 | def Build(self, repos, repo_dict): |
| 672 | """Build the dependent repo and time how long it took""" |
no test coverage detected