Skip to content
Snippets Groups Projects
Commit 9ff764f6 authored by Administrator's avatar Administrator Committed by Pierre-Alain Loizeau
Browse files

Fix warnings about duplicate libs when linking

With XCode 15.3 or the Command Line Tools 15.3 the linker or the settings were
changed such that on macosx one gets a warning about duplicate libraries when
linking for several libraries and binaries.
The fix simply suppress the warning.
parent acc2b8d1
No related branches found
No related tags found
No related merge requests found
Pipeline #33594 failed
......@@ -228,6 +228,9 @@ if (CMAKE_SYSTEM_NAME MATCHES Darwin)
set(CMAKE_C_FLAGS_PROFILE "-g3 -fno-inline -ftest-coverage -fprofile-arcs")
set(CMAKE_EXE_LINKER_FLAGS "-Wl,-no_warn_duplicate_libraries")
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,-no_warn_duplicate_libraries")
else (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
Message("CXX Compiler: ${CMAKE_CXX_COMPILER}")
Message("CXX Compiler ABI: ${CMAKE_CXX_COMPILER_ABI}")
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment