Help/policy/CMP0160.rst
.. versionadded:: 3.29
More read-only target properties now error when trying to set them.
The :command:set_target_properties and :command:set_property commands
are intended to error out on all read-only properties. However, CMake 3.28 and
below only did this for the following properties:
HEADER_SETSINTERFACE_HEADER_SETSIMPORTED_GLOBALMANUALLY_ADDED_DEPENDENCIESNAMETYPEThis policy enforces the read-only nature of the following target properties:
ALIAS_GLOBALBINARY_DIRCXX_MODULE_SETSIMPORTEDINTERFACE_CXX_MODULE_SETSLOCATIONLOCATION_<CONFIG>SOURCE_DIRThe OLD behavior for this policy is to only error out for the properties
:prop_tgt:MANUALLY_ADDED_DEPENDENCIES, :prop_tgt:NAME, and :prop_tgt:TYPE.
The NEW behavior for this policy is to error out on all target properties
that are documented as read-only.
.. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.29 .. |WARNS_OR_DOES_NOT_WARN| replace:: warns .. include:: include/STANDARD_ADVICE.rst
.. include:: include/DEPRECATED.rst