build: explicitly disable cl.exe

bitcoin/bitcoin: PR #36839

1 suggestion

Optional improvements

Link

[suggestion] · The cl.exe rejection message omits the required compiler

The configure-time error does not identify clang-cl as the required compiler, leaving developers retaining non-preset Visual Studio configurations to infer the toolset change even though the linked guide provides working preset commands.

Location: CMakeLists.txt:85 (head).

Details and suggested fix

When Visual Studio selects cl.exe, the diagnostic prints only the unsupported compiler path and a documentation link. The linked Building section shows --preset windows-static and --preset windows, but does not explain that these select the ClangCL toolset. Keep the link and add a short requirement such as Visual Studio builds require clang-cl (ClangCL toolset). This tells developers how to adjust an existing configuration without adopting a preset or inspecting its implementation, while leaving the build commands in the documentation.


Coverage details