CMP0027.rst 1.3 KB

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