CMP0027.rst 1.2 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. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.0
  19. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  20. .. include:: STANDARD_ADVICE.txt
  21. .. include:: DEPRECATED.txt