I have a quite large project that would enjoy some speedup in compilation. I'm on OSX 10.8 (clang/llvm), but I will port this to gcc as well. I am trying to tinker with .pch files but I noted in the llvm documentation that pch files are only parsed and used if -include is used at the command line. It doesn't automatically do it from the #include directive in the file.
I was wondering how to add automatically -include for the proper include files. I am using CMake to create the makefiles.