CMP0059.rst 758 B

123456789101112131415161718192021
  1. CMP0059
  2. -------
  3. .. versionadded:: 3.3
  4. Do not treat ``DEFINITIONS`` as a built-in directory property.
  5. CMake 3.3 and above no longer make a list of definitions available through
  6. the :prop_dir:`DEFINITIONS` directory property. The
  7. :prop_dir:`COMPILE_DEFINITIONS` directory property may be used instead.
  8. The ``OLD`` behavior for this policy is to provide the list of flags given
  9. so far to the :command:`add_definitions` command. The ``NEW`` behavior is
  10. to behave as a normal user-defined directory property.
  11. This policy was introduced in CMake version 3.3.
  12. CMake version |release| warns when the policy is not set and uses
  13. ``OLD`` behavior. Use the :command:`cmake_policy` command to set
  14. it to ``OLD`` or ``NEW`` explicitly.
  15. .. include:: DEPRECATED.txt