scikit-build-core
scikit-build-core copied to clipboard
`tool.scikit-build.cmake.build-type` does not not work for windows platform.
I have already set build-type to "Release", but I got empty string when message(STATUS ${CMAKE_BUILD_TYPE}) in windows. Although this can be temperarily fixed by setting define.CMAKE_BUILD_TYPE of course, but I think it is a bug for cmake.build-type
Windows uses a multi config generator (MSVC), so you can’t use CMAKE_BUILD_TYPE. You need to use generator expressions if you want to change behavior.
scikit-build-core uses cmake --build <path> --config Release when building.
Windows uses a multi config generator (MSVC), so you can’t use CMAKE_BUILD_TYPE. You need to use generator expressions if you want to change behavior.
Ohh, I have passed -GNinja to SKBUILD_CMAKE_ARGS...