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