[CMake] Behavior of include_directories()
Robert Dailey
rcdailey at gmail.com
Sat Jan 17 11:22:34 EST 2009
On Fri, Jan 16, 2009 at 5:51 PM, Robert Dailey <rcdailey at gmail.com> wrote:
> Hi,
>
> I'm reading the documentation about include directories (located here<http://cmake.org/cmake/help/cmake2.6docs.html#command:include_directories>)
> and I do not see any mention of include directories being specific to the
> target or more of a global thing. However, when looking at the output of my
> visual studio project files, it seems to only have those include directories
> added when called after calling project(). It seems like each time I call
> project() it resets the previously added include directories. Is this
> behavior intended? I would actually prefer a case where include directories
> were global and each time you call include_directories() they are appended.
>
With a little bit of hard work I was able to figure out how
include_directories() works. The documentation was not very specific on this
detail. It appears the include directories are a property of the containing
directory of the current CMakeLists.txt file.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090117/c8b2de6e/attachment.htm>
More information about the CMake
mailing list