CMP0059.rst 735 B

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