[cmake-developers] Status of pre-compiled headers

Daniel Pfeifer daniel at pfeifer-mail.de
Mon Jun 27 11:34:15 EDT 2016


On Mon, Jun 27, 2016 at 5:24 PM, Daniel Pfeifer <daniel at pfeifer-mail.de> wrote:
> On Mon, Jun 27, 2016 at 5:09 PM, Brad King <brad.king at kitware.com> wrote:
>> On 06/24/2016 12:19 PM, Oleh Kravchenko wrote:
>>> As far as I can see from issue tracker and the mail list archives of
>>> "precompiled headers" feature we are still struggling for solution.
>>> https://cmake.org/Bug/view.php?id=1260
>>> https://gitlab.kitware.com/cmake/cmake/issues/1260
>>
>> Yes.  Currently we support some primitives that make it possible to use
>> PCH in some circumstances but it is not a first-class feature.  One
>> reason is that we (upstream) have never needed it for our own projects.
>>
>>> I'm ready to contribute to development, but have not idea where shall I start :)
>>> I have in-depth knowledge of C/C++ development for different platforms
>>> (Windows, Linux), (arm, x86, amd64) and GCC/MSVC compilers.
>>
>> Great, thanks for stepping forward.
>>
>> The first step is to propose porcelain (e.g. a target property) to
>> enable and configure PCH settings, along with examples of how that
>> would map to the underlying generator behavior.  We need to find an
>> abstraction that works well for the way each native toolchain does
>> PCH.
>
> You may find this branch useful as a staring point:
> https://github.com/purpleKarrot/CMake/commits/pch
>
> The reason I never finished that is the same as Brad mentioned above:
> I currently don't need this feature for any project.

Please also see the discussion here:
http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/12589


More information about the cmake-developers mailing list