CMP0101.rst 859 B

12345678910111213141516171819202122
  1. CMP0101
  2. -------
  3. .. versionadded:: 3.17
  4. :command:`target_compile_options` now honors ``BEFORE`` keyword in all scopes.
  5. In CMake 3.16 and below the :command:`target_compile_options` ignores the
  6. ``BEFORE`` keyword in private scope. CMake 3.17 and later honors
  7. ``BEFORE`` keyword in all scopes. This policy provides compatibility for
  8. projects that have not been updated to expect the new behavior.
  9. The ``OLD`` behavior for this policy is to not honor ``BEFORE`` keyword in
  10. private scope. The ``NEW`` behavior of this policy is to honor
  11. ``BEFORE`` keyword in all scopes.
  12. This policy was introduced in CMake version 3.17. Use the
  13. :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
  14. Unlike many policies, CMake version |release| does *not* warn
  15. when this policy is not set and simply uses ``OLD`` behavior.
  16. .. include:: DEPRECATED.txt