https://gitlab.kitware.com/cmake/cmake/-/issues/19751 Apparently there is an issue with CMake and NASM command order with MSVC. I fixed this by added a custom NASM invocation, and not using the default one in CMake.