def install(self, target: Target, state: State, output: Output): """Installs CMake. CMake is not easily buildable on Windows so we rely on a binary distribution Parameters ---------- target: Target The target platform and architecture. state: State The state of the bootstrap build. output: Output The output helper. """ print("") output.print_step_title("Installing CMake") if state.cmake_path == "": self._install(target) print(" CMake installed successfully") else: self.path = state.cmake_path print(" Using previous installation: " + self.path) state.set_cmake_path(self.path) output.next_step()