[CMake] Cannot include third-party Framework headers directories as system directories in XCode for avoiding their warning
Gregor Jasny
gjasny at googlemail.com
Wed May 11 16:52:26 EDT 2016
Hello,
On 11/05/16 09:25, Attila Krasznahorkay wrote:
> I'm a bit surprised by this. I had to explicitly tell CMake not to treat includes coming from imported targets as system includes. Using this variable:
>
> https://cmake.org/cmake/help/v3.0/variable/CMAKE_NO_SYSTEM_FROM_IMPORTED.html
> https://cmake.org/cmake/help/v3.0/prop_tgt/NO_SYSTEM_FROM_IMPORTED.html
>
> So I think this is in general a MacOS specific issue. I remember reading about such issues a while ago. That CMake would not recognise that MacOS X's clang would accept the -isystem argument out of the box.
This is a known bug: http://public.kitware.com/Bug/view.php?id=15687
Please look there for possible work-arounds.
Thanks,
Gregor
More information about the CMake
mailing list