CMP0052.rst 1.1 KB

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