How do I list available CMake presets?

Table of Contents

For the preset menu and naming convention, see CMake setup.

Question

How do I list the CMake presets available in ORE Studio?

Answer

From the project root:

cmake --list-presets
Available configure presets:

  "linux-clang-debug-ninja"             - Linux Clang Debug (Ninja)
  "linux-clang-debug-make"              - Linux Clang Debug (Make)
  "linux-clang-release-ninja"           - Linux Clang Release (Ninja)
  "linux-clang-release-make"            - Linux Clang Release (Make)
  "linux-gcc-debug-ninja"               - Linux GCC Debug (Ninja)
  "linux-gcc-debug-make"                - Linux GCC Debug (Make)
  "linux-gcc-release-ninja"             - Linux GCC Release (Ninja)
  "linux-gcc-release-make"              - Linux GCC Release (Make)
  "windows-msvc-debug-ninja"            - Windows x64 Debug (Ninja)
  "windows-msvc-release-ninja"          - Windows x64 Release (Ninja)
  "windows-msvc-clang-cl-debug-ninja"   - Windows x64 Debug (Ninja)
  "windows-msvc-clang-cl-release-ninja" - Windows x64 Release (Ninja)
  "windows-clang-debug-ninja"           - Windows x64 Debug (Ninja)
  "windows-clang-release-ninja"         - Windows x64 Release (Ninja)
  "macos-clang-debug-ninja"             - Mac OSX Debug (Ninja)
  "macos-clang-debug-make"              - Mac OSX Debug (Make)
  "macos-clang-release-ninja"           - Mac OSX Release (Ninja)
  "macos-clang-release-make"            - Mac OSX Release (Make)

This reads CMakePresets.json and prints every configure preset by name and description. The captured #+RESULTS: block above is a snapshot — re-evaluate the source block (C-c C-c in emacs) to refresh it after preset changes.

Script

The command above. No wrapper.

Tested by

Implicit — used in CI to validate presets exist.

See also

Emacs 29.1 (Org mode 9.6.6)