VS: Errors with special character in Windows user name
When a Windows user has a special character, i.e. "Test(". Using a VS generator will cause build errors after configuration.
Below are simple reproduction steps:
- Unzip the attached repro project. Repro.zip
- Open a terminal at the folder of the repro project
- Configure the project by running the following command:
cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_CONFIGURE_TYPES:STRING="Debug"
This will succeed - Then, attempt to build by running:
cmake --build .
. This will show an error similar to "'C:/Users/Test' is not recognized as ..."
Edited by Brad King