CLion can't find MSVC build tools, despite autodetecting the directory

2 weeks ago 21
ARTICLE AD BOX

This is my first time using CLion and it found the toolset for Cygwin and MingGW, but not for Visual Studio. I've used and can still use Visual Studio 2019 and 2026 and for C++ development with no issue. When I select Visual Studio as my toolchain, CLion autodetects the c and c++ compilers as those included with Visual Studio. I've tried:

Reinstalling both CLion and Visual Studio Modifying my installation to include additional C++ related tools (even though they shouldn't be required) Advice given on this related post: CLion can't find MSVC build tools Manually setting every field in the relevant fields

Toolchain settings: Toolchain settings

CMake output: CMake output

user4581301's user avatar

user4581301

34.1k7 gold badges42 silver badges65 bronze badges

Tryston Freeman's user avatar

3

Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.

2026-01-12 19:34:29 +00:00

Commented 11 hours ago

Worth adding the generated CMake file to the question. Skilled CMake-ers could spot where things have gone wrong and provide clues as to where to look next to bring focus to the question

2026-01-12 19:45:50 +00:00

Commented 11 hours ago

something similar happens when there is a mismatch of architectures between tooset and cmake \ cmake project, maybe that? that path is ONLY for amd64

2026-01-13 06:54:44 +00:00

Commented 5 mins ago

Read Entire Article