[CMake] Move the setting of LLVM_COMPILER_IS_GCC_COMPATIBLE to a separate file