Windows: quotes aren't processed when find_program searchs in PATH
Consider the following:
c:\my apps\git\bin\git.exe
If I set my path to:
set PATH=%PATH%;"c:\my apps\git\bin"
Windows has no issue reading through the quotes (even though they are not necessary) and I can run git
But then if from the same shell I run CMake with:
find_program(GIT_EXECUTABLE NAMES git git.exe)
it isn't found, which is surprising and unexpected ; removing the quotes from the PATH work but I think any case supported by a Windows shell should also in general be supported by CMake.