VS2019 Compiler Identification is Unknown on Network Mapped Drive (windows)
Hello,
I installed VS2019 MSVC v142 (Compilers and Libraries) Windows 10 SDK C++ CMakeTools for windows MSBuild
I run CMake and I get error "C Compiler Identification is Unknown" (same for CXX).
I ran in Git Bash Shell, Power Shell, CMD.exe. Same error. I tried running vcvarsall.bat x86_amd64, setting VCTargetsPath. I tried many other things since then.
How does CMake detect the compiler?
Please help!
EDIT - Here are some logs. It seems the compiler is being executed incorrectly maybe?
The C compiler identification could not be found in "C:/{snip}/CMakeFiles/3.19.5/CompilerIdC/CompilerIdC.vcxproj"
The C compiler identification could not be found in "C:/{snip}/CMakeFiles/3.19.5/CompilerIdC/CompilerIdC.exe"
The C compiler identification could not be found in "C:/{snip}/CMakeFiles/3.19.5/CompilerIdC/CompilerIdC.vcxproj"
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29337 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29337 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
The C compiler identification could not be found in "C:/{snip}/CMakeFiles/3.19.5/CompilerIdC/CompilerIdC.exe"
The C compiler identification could not be found in "C:/{snip}/CMakeFiles/3.19.5/CompilerIdC/CompilerIdC.vcxproj"
The C compiler identification could not be found in "C:/{snip}/CMakeFiles/3.19.5/CompilerIdC/CompilerIdC.exe"
The C compiler identification could not be found in "C:/{snip}/CMakeFiles/3.19.5/CompilerIdC/CompilerIdC.vcxproj"
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29337 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29337 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
The CXX compiler identification could not be found in "C:/{snip}/CMakeFiles/3.19.5/CompilerIdCXX/CompilerIdCXX.exe"
The CXX compiler identification could not be found in "C:/{snip}/CMakeFiles/3.19.5/CompilerIdCXX/CompilerIdCXX.vcxproj"
The CXX compiler identification could not be found in "C:/{snip}/CMakeFiles/3.19.5/CompilerIdCXX/CompilerIdCXX.exe"
The CXX compiler identification could not be found in "C:/{snip}/CMakeFiles/3.19.5/CompilerIdCXX/CompilerIdCXX.vcxproj"
Edited by Thomas Chiantia