commit e9d2d214d7615ac6b3aa6f2e8becee77ab4764d4
Author: Koji Yokota <[email protected]>
Date: Fri Oct 16 01:25:33 2026 +0900
Avoid duplicate library warnings from Apple's linker
libfrontends.a appeared twice on the lyx link line (directly and as a
dependency of frontend_qt). Set policy CMP0156 so that CMake drops
duplicates when the linker does not need repetition.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---
CMakeLists.txt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a18fd7f573..80305dffea 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,11 @@ cmake_minimum_required(VERSION 3.10)
if (POLICY CMP0177)
cmake_policy(SET CMP0177 NEW)
endif()
+# De-duplicate libraries on link lines if the linker does not need repetition
+# (avoids "ignoring duplicate libraries" warnings from Apple's linker)
+if (POLICY CMP0156)
+ cmake_policy(SET CMP0156 NEW)
+endif()
set(LYX_PROJECT LyX)
# Instruct cmake to not use gnu extensions,
# this prevents the mix of '-std=c++*' and '-std=gnu++*' flags
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs