[CMake] target_include_directories SYSTEM adds -isystem to Clang, but not GCC

digitalriptide digitalriptide at gmail.com
Tue Dec 8 14:21:11 EST 2015


Thank you Gregor! I have tried the Makefile generator, but on OS X -isystem
still seems to be missing with GCC. The -isystem flag appears with Clang,
however. I have installed CMake 3.4.1 and GCC 5.3.0, both through MacPorts.
I can provide a sample project, if that would help.

On Fri, Nov 20, 2015 at 8:28 AM, Gregor Jasny <gjasny at googlemail.com> wrote:

> On 15/11/15 21:13, digitalriptide wrote:
>
>> Did this fix make it into 3.4? After upgrading to 3.4, GCC still seems
>> to lack -isystem flags on OS X. Is there anything extra I need to do?
>>
>
> It should be fixed for the Makefile and Ninja generators but not Xcode.
> My proposed fix broke older Xcode versions so that I had to revert it
> back. I did not find time to pick this up again.
>
> Thanks,
> Gregor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151208/160ba469/attachment.html>


More information about the CMake mailing list