Skip to content

VS: Fix ClangCL toolset compiler path detection

Brad King requested to merge brad.king/cmake:vs-clangcl into master

Prior to !4111 (merged) using -T ClangCL would work but CMAKE_{C,CXX}_COMPILER would be detected as cl.exe even though clang-cl.exe is the actual compiler. That commit attempted to fix the detection by using $(ClangClExecutable) as we do for LLVM-distributed toolsets, but that is not actually defined. Instead, look for $(CLToolExe) in the PATH.

Fixes: #20504 (closed)
Backport: release

Edited by Brad King

Merge request reports