CMAKE_CONFIG_DIR

Added in version 3.31.

This is a CMake Environment Variable. Its initial value is taken from the calling process environment.

Specify a CMake user-wide configuration directory for cmake-file-api(7) queries.

If this environment variable is not set, the default user-wide configuration directory is platform-specific:

  • Windows: %LOCALAPPDATA%\CMake
  • macOS: $XDG_CONFIG_HOME/CMake if set, otherwise $HOME/Library/Application Support/CMake
  • Linux/Other: $XDG_CONFIG_HOME/cmake if set, otherwise $HOME/.config/cmake

© 2000–2024 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/envvar/CMAKE_CONFIG_DIR.html