Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 700 Bytes

cmake.md

File metadata and controls

26 lines (19 loc) · 700 Bytes

CMake

For CMake formatting we use cmake-format

Installation

pip install cmakelang

Format on save in VScode

To have format on save in VSCode, you can install the cmake-format extension.

You will then need to update your VSCode settings.json file, to include the following:

"files.associations": {
    "CMakeLists.txt": "cmake",
    "*.cmake": "cmake"
},
"[cmake]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "cheshirekow.cmake-format"
},