From 6519823d7d6baf035d5c212d5f79c74617dfbb39 Mon Sep 17 00:00:00 2001 From: pca006132 Date: Sat, 12 Aug 2023 20:21:54 +0800 Subject: [PATCH] does calling install help? --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 27ada218f..6d7961233 100644 --- a/setup.py +++ b/setup.py @@ -54,7 +54,10 @@ def build_extension(self, ext: CMakeExtension) -> None: f"-DCMAKE_BUILD_TYPE={cfg}", # not used on MSVC, but no harm f"-DMANIFOLD_PAR=TBB" ] - build_args = [] + if self.compiler.compiler_type != "msvc": + build_args = ["--target", "install"] + else: + build_args = ["--target", "INSTALL"] # Adding CMake arguments set as environment variable # (needed e.g. to build for ARM OSx on conda-forge) if "CMAKE_ARGS" in os.environ: