[pim/mimetreeparser] src: Avoid ODR conflict between MimeTreeParser users and definition in MessageLib

Claudio Cambra <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 748428d38ec707c6b7bf3c8f260576f4b850112d by Claudio Cambra.
Committed on 16/08/2026 at 12:53.
Pushed by clau-cambra into branch 'master'.

Avoid ODR conflict between MimeTreeParser users and definition in MessageLib

Both libraries define a MimeTreeParser namespace

M  +2    -0    src/core/CMakeLists.txt
M  +2    -0    src/widgets/CMakeLists.txt

https://invent.kde.org/pim/mimetreeparser/-/commit/748428d38ec707c6b7bf3c8f260576f4b850112d

diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 9681650..84b5534 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -94,6 +94,8 @@ set_target_properties(
             MimeTreeParserCore
 )
 
+target_link_options(KPim6MimeTreeParserCore PRIVATE "LINKER:-Bsymbolic")
+
 ecm_generate_pri_file(BASE_NAME MimeTreeParserCore
     LIB_NAME KPim6MimeTreeParserCore
     DEPS "MimeTreeParserCore"
diff --git a/src/widgets/CMakeLists.txt b/src/widgets/CMakeLists.txt
index 3a0c26c..e21833b 100644
--- a/src/widgets/CMakeLists.txt
+++ b/src/widgets/CMakeLists.txt
@@ -82,6 +82,8 @@ set_target_properties(
             MimeTreeParserWidgets
 )
 
+target_link_options(KPim6MimeTreeParserWidgets PRIVATE "LINKER:-Bsymbolic")
+
 ecm_generate_pri_file(BASE_NAME MimeTreeParserWidgets
     LIB_NAME KPim6MimeTreeParserWidgets
     DEPS "MimeTreeParserWidgets"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.