Use $XDG_DATA_HOME/cmake instead of $HOME/.cmake
At the moment cmake creates $HOME/.cmake
and stores user package registry under it, which does not comply with XDG base directory specification.
This MR uses $XDG_DATA_HOME/cmake
instead; XDG_DATA_HOME
defaults to $HOME/.local/share
.
Closes #22480
Edited by Eisuke Kawashima