[CMake] Precompiled Headers

Robert Dailey rcdailey at gmail.com
Mon Jun 8 11:05:58 EDT 2009


On Mon, Jun 8, 2009 at 9:11 AM, Denis Scherbakov <denis_scherbakov at yahoo.com
> wrote:

>
> > Apart from every compiler making this different (i. e.
> > different
> > parameters for each compilers), what are the difficulties
> > you see for
> > making this a first-class feature? My Windows coworkers
> > demand this
> > feature and I was thinking in implementing when I had a few
> > spare time
> > at work (read: October the soonest)
>
> I use CMake to compile a huge project for 7 OSes / 12 processors
> architectures and I don't know a place outside Windows, where PCHs
> are needed. CCache and Parallel Builds make wonders without touching
> any single line of code in CMake.
>
> So if you use Windows, then a solution for Microsoft compiler has
> already been submitted.
>
> I've been reading this newsgroup for a while and I notice that most
> of the people complain that they miss some feature on Windows, but
> completely forget that there are other cool OSes out there and CMake
> stands for Crossplatform Make. This means that a feature must work on all
> platforms and all supported compilers, not just on Microsoft ones.


On a philosophical level, I really shouldn't be asking for this feature.
Precompiled headers are mostly evil and considered an anti-pattern. It's
actually pretty good that CMake makes it difficult to use :)
So on that note, I think I'll be happy regardless of the outcome :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090608/73da2a95/attachment.htm>


More information about the CMake mailing list