I’ve create a very simple repo for reproducing the bug here.
The steps to reproduce are as such:
- Clone the test repo above
- Open a Visual Studio 2019 x64 Native Tools Command Prompt (or just run vcvarsall x64)
-
cd
to the test repo source directory, runmkdir build
, thencd build
- Run
cmake -G Ninja ..
to generate the Ninja build files - Run
cmake --build .
orninja
to run the build and trigger the issue