More correct interaction with the cache for CMAKE_xxx_FLAGS builtin variables