Visual Studio compiler detection fails because of spacebar in username
My username contains a spacebar ("Forename Lastname", autogenerated by windows). For inspection, press ctrl+f and search for C:\Users\Forename with highlighting enabled. You'll find partial/incomplete versions of the username string.
ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.13.26128\bin\HostX86\x64\CL.exe /c /IC:\Users\Forename /Zi /nologo /W1 /WX- /diagnostics:classic /Od /Ob0 /D GIT_SSH /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_258f1.dir\Debug\\" /Fd"cmTC_258f1.dir\Debug\vc141.pdb" /Gd /TC /FC /errorReport:queue /GL- Lastname\Documents\Projekte\cratestats\target\debug\build\libssh2-sys-65d75e3acd4f00db\out/include "C:\Users\Forename Lastname\Documents\Projekte\cratestats\target\debug\build\libgit2-sys-157e0f5b905e5579\out\build\CMakeFiles\CMakeTmp\testCCompiler.c"
include
c1 : fatal error C1083: Datei (Quelle) kann nicht geöffnet werden: "Lastname\Documents\Projekte\cratestats\target\debug\build\libssh2-sys-65d75e3acd4f00db\out/include": No such file or directory [C:\Users\Forename Lastname\Documents\Projekte\cratestats\target\debug\build\libgit2-sys-157e0f5b905e5579\out\build\CMakeFiles\CMakeTmp\cmTC_258f1.vcxproj]
testCCompiler.c
Code wird generiert...
Die Erstellung des Projekts "C:\Users\Forename Lastname\Documents\Projekte\cratestats\target\debug\build\libgit2-sys-157e0f5b905e5579\out\build\CMakeFiles\CMakeTmp\cmTC_258f1.vcxproj" ist abgeschlossen (Standardziele) -- FEHLER.
Fehler beim Buildvorgang.
"C:\Users\Forename Lastname\Documents\Projekte\cratestats\target\debug\build\libgit2-sys-157e0f5b905e5579\out\build\CMakeFiles\CMakeTmp\cmTC_258f1.vcxproj" (Standardziel) (1) ->
(ClCompile Ziel) ->
c1 : fatal error C1083: Datei (Quelle) kann nicht geöffnet werden: "Lastname\Documents\Projekte\cratestats\target\debug\build\libssh2-sys-65d75e3acd4f00db\out/include": No such file or directory [C:\Users\Forename Lastname\Documents\Projekte\cratestats\target\debug\build\libgit2-sys-157e0f5b905e5579\out\build\CMakeFiles\CMakeTmp\cmTC_258f1.vcxproj]
Resulting in visual studio compiler to be detected as broken
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x64/cl.exe -- broken```