print warning instead of silently resetting *_FLAGS:
- it doesn't work for cached vars (set(... CACHE ... FORCE) could work
- cleanup