gtest automatically determines GTEST_HAS_RTTI from pre-defined compiler macros, there is no need to explicitly define this and especially no need to define this for every single source file.
See docs/CMake.html for instructions on how to build LLVM with CMake.