Skip to content

Commit 8cc3daa

Browse files
authored
Merge pull request #278 from SimonRit/ninja
COMP: Use Ninja with pyproject.toml on Windows
2 parents 2ac066f + ae2914a commit 8cc3daa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/windows_build_module_wheels.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ def build_wheels(py_envs=DEFAULT_PY_ENVS, cleanup=True, cmake_options=[]):
8686
"--config-setting=wheel.py-api=%s" % wheel_py_api,
8787
"--config-setting=cmake.define.SKBUILD:BOOL=ON",
8888
"--config-setting=cmake.define.PY_SITE_PACKAGES_PATH:PATH=.",
89+
"--config-setting=cmake.args=""-G Ninja""",
90+
"--config-setting=cmake.define.CMAKE_BUILD_TYPE:STRING=""Release""",
91+
"--config-setting=cmake.define.CMAKE_MAKE_PROGRAM:FILEPATH=%s" % ninja_executable,
8992
"--config-setting=cmake.define.ITK_DIR:PATH=%s" % itk_build_path,
9093
"--config-setting=cmake.define.WRAP_ITK_INSTALL_COMPONENT_IDENTIFIER:STRING=PythonWheel",
9194
"--config-setting=cmake.define.SWIG_EXECUTABLE:FILEPATH=%s/Wrapping/Generators/SwigInterface/swig/bin/swig.exe" % itk_build_path,

0 commit comments

Comments
 (0)