CMP0005.rst 1.2 KB

1234567891011121314151617181920212223242526
  1. CMP0005
  2. -------
  3. Preprocessor definition values are now escaped automatically.
  4. This policy determines whether or not CMake should generate escaped
  5. preprocessor definition values added via add_definitions. CMake
  6. versions 2.4 and below assumed that only trivial values would be given
  7. for macros in add_definitions calls. It did not attempt to escape
  8. non-trivial values such as string literals in generated build rules.
  9. CMake versions 2.6 and above support escaping of most values, but
  10. cannot assume the user has not added escapes already in an attempt to
  11. work around limitations in earlier versions.
  12. The OLD behavior for this policy is to place definition values given
  13. to add_definitions directly in the generated build rules without
  14. attempting to escape anything. The NEW behavior for this policy is to
  15. generate correct escapes for all native build tools automatically.
  16. See documentation of the COMPILE_DEFINITIONS target property for
  17. limitations of the escaping implementation.
  18. This policy was introduced in CMake version 2.6.0. CMake version
  19. |release| warns when the policy is not set and uses OLD behavior. Use
  20. the cmake_policy command to set it to OLD or NEW explicitly.
  21. .. include:: DEPRECATED.txt