Search code examples
cmake

How can I prevent CMake from printing information about a selected preset's variables and environment during config?


When using CMakePresets.json, CMake outputs information related to the presets during configuration. Example:

Preset CMake variables:

  CMAKE_TOOLCHAIN_FILE:FILEPATH="K:/vcpkg/scripts/buildsystems/vcpkg.cmake"

Is there a way to tell CMake to omit outputting that information? I just don't want that noise outputted, unless I specifically ask for it.


Solution

  • This seems to be impossible to do, there is no mention of a flag to silent/quiet those cached vars when using presets in cmake

    Sources: