Updates CMake files for compiler flags.