[CMake] Semi-related question
Filipe Sousa
filipe at ipb.pt
Tue Oct 24 05:06:58 EDT 2006
Filipe Sousa wrote:
> Jonathan Hansen wrote:
>> This more of a compiler question but I figured since people here are make
>> folks you might know and save me signing up for another list...
>>
>> Is there a way in GCC to eliminate an include directory from warnings?
>>
>> Example:
>>
>> gcc -Wall -I/tmp/messycode foo.cpp foo.o
>
> gcc -Wall -isystem/tmp/messycode foo.cpp foo.o
with cmake from cvs you can use the SYSTEM option with INCLUDE_DIRECTORIES
INCLUDE_DIRECTORIES
Add include directories to the build.
INCLUDE_DIRECTORIES([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...)
Add the given directories to those searched by the compiler for
include files. By default the directories are appended onto the
current list of directories. This default behavior can be changed by
setting CMAKE_INCLUDE_DIRECTORIES_BEFORE to ON. By using BEFORE or
AFTER you can select between appending and prepending, independent
from the default. If the SYSTEM option is given the compiler will be
told that the directories are meant as system include directories on
some platforms.
--
Filipe Sousa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20061024/83b0589c/signature.pgp
More information about the CMake
mailing list