cmake build: Avoid other LLVM libraries interfering with ClangFormat plugin

Make the static LLVM in ClangFormat really internal to the ClangFormat
plugin on Linux by not exporting symbols from it.

This was missed during the conversion of the qmake project to CMake.

Fixes: QTCREATORBUG-24998
Change-Id: If483f3c45d5cf7f63e7b8dde58efab6371414bdd
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Eike Ziller
2021-01-06 10:08:12 +01:00
parent dd75e97cb8
commit 9b4e2aa71d

View File

@@ -13,3 +13,8 @@ add_qtc_plugin(ClangFormat
clangformatsettings.cpp clangformatsettings.h
clangformatutils.cpp clangformatutils.h
)
extend_qtc_plugin(ClangFormat
CONDITION UNIX AND NOT APPLE
PROPERTIES LINK_FLAGS "-Wl,--exclude-libs,ALL"
)