kikairoya wrote: > Perhaps some of `if (MSVC)` blocks should be changed to `(WIN32 AND NOT MINGW)`. `(MSVC OR CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")` might be better. https://gitlab.kitware.com/cmake/cmake/-/issues/19724 https://github.com/llvm/llvm-project/pull/171054