CMP0027.rst 1.2 KB

12345678910111213141516171819202122232425262728
  1. CMP0027
  2. -------
  3. .. |REMOVED_IN_CMAKE_VERSION| replace:: 4.0
  4. .. include:: include/REMOVED_PROLOGUE.rst
  5. Conditionally linked imported targets with missing include directories.
  6. CMake 2.8.11 introduced introduced the concept of
  7. :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES`, and a check at cmake time that the
  8. entries in the :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` of an ``IMPORTED``
  9. target actually exist. CMake 2.8.11 also introduced generator expression
  10. support in the :command:`target_link_libraries` command. However, if an
  11. imported target is linked as a result of a generator expression evaluation, the
  12. entries in the :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` of that target were not
  13. checked for existence as they should be.
  14. The ``OLD`` behavior of this policy is to report a warning if an entry in
  15. the :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` of a generator-expression
  16. conditionally linked ``IMPORTED`` target does not exist.
  17. The ``NEW`` behavior of this policy is to report an error if an entry in
  18. the :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` of a generator-expression
  19. conditionally linked ``IMPORTED`` target does not exist.
  20. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.0
  21. .. |WARNED_OR_DID_NOT_WARN| replace:: warned
  22. .. include:: include/REMOVED_EPILOGUE.rst