Remove {PROJECT}_CXX_FLAGS in generate CMakeLists.txtx file.

CXX flags are compiler specific, and can lead to compilation failures.
Remove setting of CXX compiler in generated CMake files.
Merge branch 'garth/fix-cmake-flags'