[CMake] get current INCLUDE_DIRECTORIES list?
Alexander Neundorf
a.neundorf-work at gmx.net
Fri Feb 3 02:52:19 EST 2006
Hi,
> Von: Zachary Pincus <zpincus at stanford.edu>
>
> Hi folks,
>
> Is it possible to get a list of the currently-defined include
> directories (implicitly included paths, and those explicitly added
> with INCLUDE_DIRECTORIES) within cmake at configure time? Or failing
> that, get a variable that expands to whatever make/XCode/VC++
> variable stores the include directories at build time?
GET_DIRECTORY_PROPERTY(... INCLUDE_DIRECTORIES ... )
will give you the list of current include directories, i.e. a list and
not a string containing them all. If you need them in string-form (i.e.
not separated by semicolons), you have to iterate over the list and
append each item to a string.
Bye
Alex
--
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
More information about the CMake
mailing list