Add a CMake snippet to dump variables.