CMAKE_CONFIG_DIR¶
在 3.31 版被加入.
這是一個 CMake 環境變數。其初始值取自呼叫的進程環境。
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%\CMakemacOS:
$XDG_CONFIG_HOME/CMakeif set, otherwise$HOME/Library/Application Support/CMakeLinux/Other:
$XDG_CONFIG_HOME/cmakeif set, otherwise$HOME/.config/cmake