CMP0179.rst 1.1 KB

12345678910111213141516171819202122232425262728
  1. CMP0179
  2. -------
  3. .. versionadded:: 3.31
  4. De-duplication of static libraries on link lines keeps first occurrence.
  5. This policy is only relevant when policy :policy:`CMP0156` is set to ``NEW``.
  6. Based on the linker capabilities, the static libraries can
  7. be de-duplicated. See policy :policy:`CMP0156` for more information.
  8. CMake 3.30 and below may choose to keep, on some platforms, the last occurrence
  9. of the static libraries rather than the fist occurrence when they are
  10. de-duplicated.
  11. CMake 3.31 and above prefer to keep, on all platforms, the first occurrence of
  12. the static libraries when they are de-duplicated.
  13. The ``OLD`` behavior for this policy is to keep, on some platforms, the last
  14. occurrence of the static libraries when they are de-duplicated. The ``NEW``
  15. behavior for this policy is to keep the first occurrence of the static
  16. libraries when they are de-duplicated, regardless of the platform.
  17. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.31
  18. .. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn
  19. .. include:: include/STANDARD_ADVICE.rst
  20. .. include:: include/DEPRECATED.rst