CMP0052.rst 1.1 KB

1234567891011121314151617181920212223242526272829
  1. CMP0052
  2. -------
  3. .. |REMOVED_IN_CMAKE_VERSION| replace:: 4.0
  4. .. include:: include/REMOVED_PROLOGUE.rst
  5. .. versionadded:: 3.1
  6. Reject source and build dirs in installed
  7. :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES`.
  8. CMake 3.0 and lower allowed subdirectories of the source directory or build
  9. directory to be in the :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` of
  10. installed and exported targets, if the directory was also a subdirectory of
  11. the installation prefix. This makes the installation depend on the
  12. existence of the source dir or binary dir, and the installation will be
  13. broken if either are removed after installation.
  14. See :ref:`Include Directories and Usage Requirements` for more on
  15. specifying include directories for targets.
  16. The ``OLD`` behavior for this policy is to export the content of the
  17. :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` with the source or binary
  18. directory. The ``NEW`` behavior for this
  19. policy is to issue an error if such a directory is used.
  20. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.1
  21. .. |WARNED_OR_DID_NOT_WARN| replace:: warned
  22. .. include:: include/REMOVED_EPILOGUE.rst