diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-04-18 16:37:16 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2024-04-18 19:30:31 +0000 |
commit | b74369c03325e49132dc77f2a83af8fd25c81a8a (patch) | |
tree | c6cca84f5e1c3c1b68b28ed514cf8c4a6d5069a5 /cmake/QtInternalTargets.cmake | |
parent | 7689127d83c79099c8c414845e21000314d67814 (diff) |
cmake: Add opt-out for adding -no_warn_duplicate_libraries linker flag
The classic linker (triggered via -ld_classic) doesn't support this flag,
and we can't construct a genex that takes this into account, so add an
opt-out for Qt WebEngine.
Pick-to: 6.7
Change-Id: I62418e0ff37fe8f5bdda2fa8d01b36a8fd44542a
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'cmake/QtInternalTargets.cmake')
-rw-r--r-- | cmake/QtInternalTargets.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake index b26ec63ccd..d7eadc1a73 100644 --- a/cmake/QtInternalTargets.cmake +++ b/cmake/QtInternalTargets.cmake @@ -249,8 +249,9 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang") # - https://gitlab.kitware.com/cmake/cmake/-/issues/25297 and # - https://indiestack.com/2023/10/xcode-15-duplicate-library-linker-warnings/ set(is_xcode15 "$<VERSION_GREATER_EQUAL:$<CXX_COMPILER_VERSION>,15>") + set(not_disabled "$<NOT:$<BOOL:$<TARGET_PROPERTY:QT_NO_DISABLE_WARN_DUPLICATE_LIBRARIES>>>") target_link_options(PlatformCommonInternal INTERFACE - "$<${is_xcode15}:LINKER:-no_warn_duplicate_libraries>") + "$<$<AND:${not_disabled},${is_xcode15}>:LINKER:-no_warn_duplicate_libraries>") endif() if(MSVC) |