CMP0101.rst 835 B

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