Add the -Wundef flag when compiling CMake.
Merge topic 'use-wundef' into next

c772810 Add the -Wundef flag when compiling CMake.