graphite2 1.3.5 does not build on Mac OS X 10.6.8 using its customary Apple gcc 4.2.1 compiler. Here is a build log from the MacPorts project's automated Mac OS X 10.6.8 builder:
The error is:
cc1plus: error: unrecognized command line option "-Wimplicit-fallthrough"
In your src/CMakeLists.txt I see that on Linux you only add -Wimplicit-fallthrough when the compiler is clang, but on OS X you always add it. If it only works with clang, you should only add it when using clang, on any platform.
Looks like this hasn't been fixed in 1.3.10 yet.
https://github.com/silnrsi/graphite/pull/44