// plugins

cmakefmt Plugin

Plugin that formats CMake files via cmakefmt.

Formats CMakeLists.txt, CMakeLists.txt.in, and .cmake files.

There is also a separate azais-corentin/cmakefmt plugin, which is configured under the "cmake" key.

Install and Setup

In your project's directory with a dprint.json file, run:

dprint add cmakefmt/cmakefmt

This will update your config file to have an entry for the plugin. Then optionally specify a "cmakefmt" property to add configuration:

{
  "cmakefmt": {
    // cmakefmt config goes here
  },
  "plugins": [
    "https://plugins.dprint.dev/cmakefmt/cmakefmt-vx.x.x.wasm"
  ]
}

Configuration

See Configuration.