forked from qt-creator/qt-creator
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:
@@ -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"
|
||||
)
|
||||
|
Reference in New Issue
Block a user