Initialize a CMakeBuild. The caller must ensure that cmake was invoked in the build directory. Parameters ---------- definition : CMakeDefinition The definition to build from. build_dir : str The build directory to s
(self, build_dir, build_type, definition=None)
| 126 | """ |
| 127 | |
| 128 | def __init__(self, build_dir, build_type, definition=None): |
| 129 | """ Initialize a CMakeBuild. |
| 130 | |
| 131 | The caller must ensure that cmake was invoked in the build directory. |
| 132 | |
| 133 | Parameters |
| 134 | ---------- |
| 135 | definition : CMakeDefinition |
| 136 | The definition to build from. |
| 137 | build_dir : str |
| 138 | The build directory to setup into. |
| 139 | """ |
| 140 | assert CMakeBuild.is_build_dir(build_dir) |
| 141 | super().__init__() |
| 142 | self.build_dir = os.path.abspath(build_dir) |
| 143 | self.build_type = build_type |
| 144 | self.definition = definition |
| 145 | |
| 146 | @property |
| 147 | def binaries_dir(self): |
nothing calls this directly
no test coverage detected