File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -180,9 +180,17 @@ def install_umf(self) -> None:
180
180
sys .exit (
181
181
f"Error: Installation directory '{ self .install_dir } ' is not empty"
182
182
)
183
-
183
+
184
184
install_cmd = f"cmake --build { self .build_dir } --config { self .build_type .title ()} --target install"
185
-
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
+
186
194
try :
187
195
print (f"Running command: { install_cmd } " , flush = True )
188
196
subprocess .run (install_cmd .split ()).check_returncode () # nosec B603
You can’t perform that action at this time.
0 commit comments