Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed Nov 30, 2023
1 parent e86e5d4 commit 993458d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def run(self):
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14",
"-DCMAKE_OSX_ARCHITECTURES=arm64",
]
if platform.system() == "Windows":
target_cmake_config_args += [f"-DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE={TARGET_BUILD_DIR}"]
subprocess.check_call(["cmake", "-S", ".", "-B", TARGET_BUILD_DIR] + target_cmake_config_args, cwd=ROOT_DIR)
subprocess.check_call(
["cmake", "--build", TARGET_BUILD_DIR, "--parallel", "--verbose"] + cmake_build_args,
Expand All @@ -61,6 +63,8 @@ def run(self):
if CROSS_COMPILING:
# Also build a host version of sleigh to process .sla files
host_cmake_config_args = cmake_config_args[::]
if platform.system() == "Windows":
host_cmake_config_args += [f"-DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE={HOST_BUILD_DIR}"]
subprocess.check_call(["cmake", "-S", ".", "-B", HOST_BUILD_DIR] + host_cmake_config_args, cwd=ROOT_DIR)
subprocess.check_call(
["cmake", "--build", HOST_BUILD_DIR, "--parallel", "--verbose", "--target", "sleigh"]
Expand Down

0 comments on commit 993458d

Please sign in to comment.