1CMP0041 2------- 3 4Error on relative include with generator expression. 5 6Diagnostics in CMake 2.8.12 and lower silently ignored an entry in the 7:prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` of a target if it contained a generator 8expression at any position. 9 10The path entries in that target property should not be relative. High-level 11API should ensure that by adding either a source directory or a install 12directory prefix, as appropriate. 13 14As an additional diagnostic, the :prop_tgt:`INTERFACE_INCLUDE_DIRECTORIES` generated 15on an :prop_tgt:`IMPORTED` target for the install location should not contain 16paths in the source directory or the build directory. 17 18The ``OLD`` behavior for this policy is to ignore relative path entries if they 19contain a generator expression. The ``NEW`` behavior for this policy is to report 20an error if a generator expression appears in another location and the path is 21relative. 22 23This policy was introduced in CMake version 3.0. CMake version 24|release| warns when the policy is not set and uses ``OLD`` behavior. Use 25the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly. 26 27.. include:: DEPRECATED.txt 28