vs_link_exe / vs_link_dll ignores CMAKE_RC_COMPILER
vs_link_exe / vs_link_dll require
rc.exe to be in your path in order to succeed. I realise these are internal functions, but they're called as part of the initial compiler identification. If I configure CMake with:
CMAKE_CXX_COMPILER="C:/Program Files/LLVM/bin/clang-cl.exe" CMAKE_LINKER="C:/Program Files/LLVM/bin/lld-link.exe" CMAKE_RC_COMPILER="C:/Program Files (x86)/Windows Kits/10/bin/x64/rc.exe"
Then I would expect
CMAKE_RC_COMPILER to be used in-place of a hardcoded
rcCommand.push_back("rc"); (cmcmd.cxx, line 1794).
It's worth noting that
CMAKE_LINKER must be an absolute path, else linking will fail as well.