mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-09 01:09:30 -05:00
sourceFile properties: add property INCLUDE_DIRECTORIES
This commit is contained in:
@@ -375,6 +375,7 @@ Properties on Source Files
|
||||
/prop_sf/Fortran_FORMAT
|
||||
/prop_sf/GENERATED
|
||||
/prop_sf/HEADER_FILE_ONLY
|
||||
/prop_sf/INCLUDE_DIRECTORIES
|
||||
/prop_sf/KEEP_EXTENSION
|
||||
/prop_sf/LABELS
|
||||
/prop_sf/LANGUAGE
|
||||
|
||||
@@ -6,7 +6,8 @@ List of additional options to pass to the compiler.
|
||||
This property holds a :ref:`;-list <CMake Language Lists>` of options
|
||||
and will be added to the list of compile flags when this
|
||||
source file builds. Use :prop_sf:`COMPILE_DEFINITIONS` to pass
|
||||
additional preprocessor definitions.
|
||||
additional preprocessor definitions and :prop_sf:`INCLUDE_DIRECTORIES` to pass
|
||||
additional include directories.
|
||||
|
||||
Contents of ``COMPILE_OPTIONS`` may use "generator expressions" with the
|
||||
syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)` manual
|
||||
|
||||
18
Help/prop_sf/INCLUDE_DIRECTORIES.rst
Normal file
18
Help/prop_sf/INCLUDE_DIRECTORIES.rst
Normal file
@@ -0,0 +1,18 @@
|
||||
INCLUDE_DIRECTORIES
|
||||
-------------------
|
||||
|
||||
List of preprocessor include file search directories.
|
||||
|
||||
This property holds a :ref:`;-list <CMake Language Lists>` of paths
|
||||
and will be added to the list of include directories when this
|
||||
source file builds. These directories will take precedence over directories
|
||||
defined at target level except for :generator:`Xcode` generator due to technical
|
||||
limitations.
|
||||
|
||||
Relative paths should not be added to this property directly.
|
||||
|
||||
Contents of ``INCLUDE_DIRECTORIES`` may use "generator expressions" with
|
||||
the syntax ``$<...>``. See the :manual:`cmake-generator-expressions(7)` manual
|
||||
for available expressions. However, :generator:`Xcode` does not support
|
||||
per-config per-source settings, so expressions that depend on the build
|
||||
configuration are not allowed with that generator.
|
||||
@@ -1,4 +0,0 @@
|
||||
sourceFile-new-properties
|
||||
-------------------------
|
||||
|
||||
* The source files learn new property :prop_sf:`COMPILE_OPTIONS`.
|
||||
@@ -0,0 +1,10 @@
|
||||
src-new-properties-COMPILE_OPTIONS-and-INCLUDE_DIRECTORIES
|
||||
----------------------------------------------------------
|
||||
|
||||
* Source file learns new properties:
|
||||
|
||||
* A :prop_sf:`COMPILE_OPTIONS` source file property was added to manage list
|
||||
of options to pass to the compiler.
|
||||
|
||||
* An :prop_sf:`INCLUDE_DIRECTORIES` source file property was added to specify
|
||||
list of preprocessor include file search directories.
|
||||
Reference in New Issue
Block a user