Using pre-compiled headers with CMake


Question

I have seen a few (old) posts on the 'net about hacking together some support for pre-compiled headers in CMake. They all seem a bit all-over the place and everyone has their own way of doing it. What is the best way of doing it currently?

1
96
12/17/2008 7:41:30 AM

There is a third party CMake module named 'Cotire' which automates the use of precompiled headers for CMake based build systems and also supports unity builds.

73
3/10/2017 9:24:14 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon