1CMP0111
2-------
3
4.. versionadded:: 3.19
5
6An imported target missing its location property fails during generation.
7
8:ref:`Imported Targets` for library files and executables require that
9their location on disk is specified in a target property such as
10:prop_tgt:`IMPORTED_LOCATION`, :prop_tgt:`IMPORTED_IMPLIB`, or a
11per-configuration equivalent.  If a needed location property is not set,
12CMake 3.18 and below generate the string ``<TARGET_NAME>-NOTFOUND`` in
13its place, which results in failures of the corresponding rules at build
14time.  CMake 3.19 and above prefer instead to raise an error during
15generation.  This policy provides compatibility for projects that have
16not been updated to expect the new behavior.
17
18The ``OLD`` behavior of this policy is to generate the location of an imported
19unknown, static or shared library target as ``<TARGET_NAME>-NOTFOUND`` if not
20set.
21The ``NEW`` behavior is to raise an error.
22
23This policy was introduced in CMake version 3.19.  CMake version |release|
24warns when the policy is not set and uses ``OLD`` behavior. Use the
25:command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
26
27.. include:: DEPRECATED.txt
28