set(CACHE): do not remove normal variable

Fixes: #22038
16 files changed