It would be helpful to have the ability to supply a default value for environment variables in presets (when the environment variable is not defined).
My use case is this… I’d like to make the build directory a subdirectory of XDG_CACHE_HOME
. The semantics of this variable are such that applications should use ~/.cache
if the variable is not defined. It would be nice if it were possible to express this in CMakePresets.json
.