1CMP0027
2-------
3
4Conditionally linked imported targets with missing include directories.
5
6CMake 2.8.11 introduced introduced the concept of
7:prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES`, and a check at cmake time that the
8entries in the :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` of an ``IMPORTED``
9target actually exist.  CMake 2.8.11 also introduced generator expression
10support in the :command:`target_link_libraries` command.  However, if an
11imported target is linked as a result of a generator expression evaluation, the
12entries in the :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` of that target were not
13checked for existence as they should be.
14
15The ``OLD`` behavior of this policy is to report a warning if an entry in
16the :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` of a generator-expression
17conditionally linked ``IMPORTED`` target does not exist.
18
19The ``NEW`` behavior of this policy is to report an error if an entry in
20the :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` of a generator-expression
21conditionally linked ``IMPORTED`` target does not exist.
22
23This policy was introduced in CMake version 3.0.  CMake version
24|release| warns when the policy is not set and uses ``OLD`` behavior.  Use
25the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
26
27.. include:: DEPRECATED.txt
28