We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a63bbd commit a3dfd44Copy full SHA for a3dfd44
test/test_installation.py
@@ -180,9 +180,17 @@ def install_umf(self) -> None:
180
sys.exit(
181
f"Error: Installation directory '{self.install_dir}' is not empty"
182
)
183
-
+
184
install_cmd = f"cmake --build {self.build_dir} --config {self.build_type.title()} --target install"
185
186
+ cmake_cache_file = self.build_dir / "CMakeCache.txt"
187
+ if cmake_cache_file.exists():
188
+ with cmake_cache_file.open() as f:
189
+ for line in f:
190
+ if "CMAKE_GENERATOR:INTERNAL=Ninja" in line:
191
+ install_cmd = f"cmake --build {self.build_dir} --config {self.build_type.title()} --install"
192
+ break
193
194
try:
195
print(f"Running command: {install_cmd}", flush=True)
196
subprocess.run(install_cmd.split()).check_returncode() # nosec B603
0 commit comments