CMP0052.rst 1.1 KB

1234567891011121314151617181920212223242526
  1. CMP0052
  2. -------
  3. Reject source and build dirs in installed INTERFACE_INCLUDE_DIRECTORIES.
  4. CMake 3.0 and lower allowed subdirectories of the source directory or build
  5. directory to be in the :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` of
  6. installed and exported targets, if the directory was also a subdirectory of
  7. the installation prefix. This makes the installation depend on the
  8. existence of the source dir or binary dir, and the installation will be
  9. broken if either are removed after installation.
  10. See :ref:`Include Directories and Usage Requirements` for more on
  11. specifying include directories for targets.
  12. The OLD behavior for this policy is to export the content of the
  13. :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` with the source or binary
  14. directory. The NEW behavior for this
  15. policy is to issue an error if such a directory is used.
  16. This policy was introduced in CMake version 3.1.
  17. CMake version |release| warns when the policy is not set and uses
  18. ``OLD`` behavior. Use the :command:`cmake_policy` command to set it
  19. to ``OLD`` or ``NEW`` explicitly.
  20. .. include:: DEPRECATED.txt