CMP0052.rst 1.1 KB

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