[cmake-developers] RFC: CMake precompiled header support and custom compiler based implementation

Jean-Michaël Celerier jeanmichael.celerier at gmail.com
Wed Apr 6 04:48:41 EDT 2016


Hi,

could you give a try to the branch ?
:)

Jean-Michaël Celerier

On Sat, Dec 5, 2015 at 1:39 PM, David Cole via cmake-developers <
cmake-developers at cmake.org> wrote:

> Yes, that looks like it should work. I'll pull your branch and give it a
> try sometime in the coming week.
>
> Thanks,
> David
>
> On Friday, December 4, 2015, Daniel Pfeifer <daniel at pfeifer-mail.de>
> wrote:
>
>> On Fri, Dec 4, 2015 at 11:32 PM, David Cole <DLRdave at aol.com> wrote:
>> > Makes sense.
>> >
>> > Can I inject my own "#include <notNormallyIncludedSystemHeader>" into
>> > the generated stream, or otherwise inject something into it?
>>
>> You should be able to do:
>>
>> target_include_directories(your_target
>>   PUBLIC public
>>   PRIVATE private
>>   )
>> target_precompile_headers(your_target
>>   PUBLIC
>>     public_header1.h
>>     public_header2.h
>>   PRIVATE
>>     private_header1.h
>>     private_header2.h
>>   )
>>
>> Does that answer your question? Do you think this could solve your
>> use-case?
>>
>> > Specifically, for me, I want to include some, but not ALL VTK headers
>> > for a VTK-based project.
>>
>> I don't see a problem for that.
>>
>> > Thanks for working on this.
>>
>> You are welcome. :-)
>>
>> > Let me know if you want me to be a Visual Studio tester for you.
>>
>> Yes, please. My main working environment is Linux. I appreciate any
>> feedback from different platforms.
>>
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160406/ef7268bc/attachment.html>


More information about the cmake-developers mailing list