Yes to both. You can verify for yourself with the CMake command GET_DIRECTORY_PROPERTY and the property name INCLUDE_DIRECTORIES:

>cmake --help-command GET_DIRECTORY_PROPERTY
cmake version 2.4-patch 2
 GET_DIRECTORY_PROPERTY
      Get a property of the directory.

        GET_DIRECTORY_PROPERTY(VAR [DIRECTORY dir] property)

      Get a property from the Directory.  The value of the property is
      stored in the variable VAR.  If the property is not found, CMake will
      report an error.  The properties include: VARIABLES, CACHE_VARIABLES,
      COMMANDS, MACROS, INCLUDE_DIRECTORIES, LINK_DIRECTORIES, DEFINITIONS,
      INCLUDE_REGULAR_EXPRESSION, LISTFILE_STACK, PARENT_DIRECTORY, and
      DEFINITION varname.  If the DIRECTORY argument is provided then the
      property of the provided directory will be retrieved instead of the
      current directory.  You can only get properties of a directory during
      or after it has been traversed by cmake.


Alexander Neundorf wrote:

-------- Original-Nachricht --------
Datum: Sun, 10 Sep 2006 18:41:42 -0700
Von: "Brandon J. Van Every" <[EMAIL PROTECTED]>
An: cmake <cmake@cmake.org>
Betreff: [CMake] INCLUDE_DIRECTORIES and subdirectories

Do subdirectories inherit the INCLUDE_DIRECTORIES from their parents?

Do INCLUDE_DIRECTORIES set by children pop off and disappear when returning to the parent?

Yes to both AFAIK (without checking now).

Alex

_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to