Skip to content

Commit 429e79e

Browse files
committed
use --install in installation tests on Windows
1 parent 0a63bbd commit 429e79e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test_installation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ def install_umf(self) -> None:
181181
f"Error: Installation directory '{self.install_dir}' is not empty"
182182
)
183183

184-
install_cmd = f"cmake --build {self.build_dir} --config {self.build_type.title()} --target install"
184+
if platform.system() == "Windows":
185+
install_cmd = f"cmake --install {self.build_dir} --config {self.build_type.title()} --prefix {self.install_dir}"
186+
else:
187+
install_cmd = f"cmake --build {self.build_dir} --config {self.build_type.title()} --target install"
185188

186189
try:
187190
print(f"Running command: {install_cmd}", flush=True)

0 commit comments

Comments
 (0)