Standalone Cmake and Clang in VS Code
2025-09-29
Written by: xiaobin
About: clang-cl is an alternative command-line interface to Clang, designed for compatibility with the Visual C++ compiler, cl.exe.
├── Circular.cpp
├── Circular.h
├── testCir2.cpp
├── CMakeLists.txt
cmake_minimum_required(VERSION 3.23)
project(mytest CXX)
add_executable(testCir2 testCir2.cpp Circular.cpp)
CMake: Select a Kit
Clang-cl <version> x86_64-pc-windows-msvc
These names are stored in “cmake-tools-kits.json”
%USERPROFILE%\AppData\Local\CMakeTools
Build all projects