(self)
| 189 | ] |
| 190 | |
| 191 | def run(self): |
| 192 | logging.info("CMake build Task Start...") |
| 193 | targets = self.config.get("targets", None) |
| 194 | if targets: |
| 195 | for target in targets: |
| 196 | sub_command = self.make_command_str( |
| 197 | self.CMAKE_COMMAND.extend(["--target", target]) |
| 198 | ) |
| 199 | logging.info(sub_command) |
| 200 | throw_error_if_failed(os.system(sub_command)) |
| 201 | else: |
| 202 | sub_command = self.make_command_str(self.CMAKE_COMMAND) |
| 203 | logging.info(sub_command) |
| 204 | throw_error_if_failed(os.system(sub_command)) |
| 205 | |
| 206 | |
| 207 | class CMakeInstallTask(Task): |
nothing calls this directly
no test coverage detected