cmake/Help/policy/CMP0052.rst

29 lines
1.0 KiB
ReStructuredText
Raw Normal View History

2015-04-27 22:25:09 +02:00
CMP0052
-------
2021-09-14 00:13:48 +02:00
.. versionadded:: 3.1
2019-11-11 23:01:05 +01:00
Reject source and build dirs in installed
:prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES`.
2015-04-27 22:25:09 +02:00
CMake 3.0 and lower allowed subdirectories of the source directory or build
directory to be in the :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` of
installed and exported targets, if the directory was also a subdirectory of
the installation prefix. This makes the installation depend on the
existence of the source dir or binary dir, and the installation will be
broken if either are removed after installation.
See :ref:`Include Directories and Usage Requirements` for more on
specifying include directories for targets.
2019-11-11 23:01:05 +01:00
The ``OLD`` behavior for this policy is to export the content of the
2015-04-27 22:25:09 +02:00
:prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` with the source or binary
2019-11-11 23:01:05 +01:00
directory. The ``NEW`` behavior for this
2015-04-27 22:25:09 +02:00
policy is to issue an error if such a directory is used.
2024-04-14 22:45:38 +02:00
.. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.1
.. |WARNS_OR_DOES_NOT_WARN| replace:: warns
.. include:: STANDARD_ADVICE.txt
2015-08-17 11:37:30 +02:00
.. include:: DEPRECATED.txt