CMP0142.rst 1.0 KB

1234567891011121314151617181920212223242526
  1. CMP0142
  2. -------
  3. .. versionadded:: 3.25
  4. The :generator:`Xcode` generator does not append per-config suffixes to
  5. library search paths.
  6. In CMake 3.24 and below, the :generator:`Xcode` generator preceded each
  7. entry of a library search path with a copy of itself appended with
  8. ``$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)``. This was left from
  9. very early versions of CMake in which per-config directories were not well
  10. modeled. Such paths often do not exist, resulting in warnings from the
  11. toolchain. CMake 3.25 and above prefer to not add such library search
  12. paths. This policy provides compatibility for projects that may have been
  13. accidentally relying on the old behavior.
  14. The ``OLD`` behavior for this policy is to append
  15. ``$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)`` to all library search paths.
  16. The ``NEW`` behavior is to not modify library search paths.
  17. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.25
  18. .. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn
  19. .. include:: STANDARD_ADVICE.txt
  20. .. include:: DEPRECATED.txt