We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1279344 + 437b33e commit 3c8a0afCopy full SHA for 3c8a0af
cmake/Modules/CMakePolicy.cmake
@@ -29,3 +29,11 @@ endif()
29
if(POLICY CMP0144)
30
cmake_policy(SET CMP0144 NEW)
31
endif()
32
+
33
+# CMP0156: De-duplicate libraries on link lines based on linker capabilities.
34
+# New in CMake 3.29: https://cmake.org/cmake/help/latest/policy/CMP0156.html
35
+# Avoids the deluge of 'ld: warning: ignoring duplicate libraries' warnings when
36
+# building with the Apple linker.
37
+if(POLICY CMP0156)
38
+ cmake_policy(SET CMP0156 NEW)
39
+endif()
0 commit comments