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”
After some debugging I learned that the issue is related to being on a network drive. When I clone my repo onto the local C drive everything works as expected. However, when I am using a drive connected to my vmware-host// drive - the compiler is no longer detected.
Is this not supported maybe?
Note that my Guest OS is Windows 10 PRO and my Host OS is Fedora Linux, and my source files are mounted into my Win10 Guest from Linux. If there is support for this It would make my environment very nice to test code on multiple platforms.
(I start from fresh build files, meaning I definetly do not mix linux build files and windows build files. I only share the source files)
Does CMake work when source and build directory are on a SMB mount? When I build my CMake project on my local drive everything works as expected. However when I build my CMake project located on a network drive, my compilers are not detected. I’m not sure if this is an issue with CMake or if this is not supported?
FWIW, compiler identification also breaks for me when generating a project on a network drive (I’m running non-virtual Windows 10 and using VS 2017 generator). Funny thing is, I’m pretty certain this used to work for me some time (years?) ago - but I don’t remember if I was at Windows 7 or 10 at that time. Perhaps it has to do with Windows’ default approach of “everything network is super-scary and you should only touch it with a 10-foot pole if possible.”
I have VMWARE PRO with Windows 10 PRO Guest OS. I am building from the Guest OS. When the Build folder is on the shared folder - the compiler is not detected. When the build folder is on a local drive, the compiler is detected. So I can work with this since it doesn’t matter where my source files are. But it’s definitely interesting and no idea why. I can provide more logs if interested in learning why this doesn’t work. But in either case I am ok since I can work around this issue