Feature request: CMP0077 but for cache variables
CMP0077 provided a nice way to set subproject options in an encapsulated way (e.g. for FetchContent-based dependencies).
However, it only applies to option
. Many projects also define STRING
options via set
CACHE
.
For consistency with option
and to allow for the same use cases, perhaps set
CACHE
should also do nothing if a normal variable already exists?