diff --git a/src/plugins/clangformat/CMakeLists.txt b/src/plugins/clangformat/CMakeLists.txt index 641343239cb..937e26c1bff 100644 --- a/src/plugins/clangformat/CMakeLists.txt +++ b/src/plugins/clangformat/CMakeLists.txt @@ -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" +)