diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-12-18 14:38:34 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-12-18 15:29:45 +0000 |
commit | f74b31759867e8872bf151ac7dc8160ba31eeac1 (patch) | |
tree | 34ef1dca58b968d0cc728c2bb526dc5f054bf094 /cmake | |
parent | 305ca7e4345da1fa558157d09a92a232653940a4 (diff) |
Fix compilation of ClangFormat plugin against LLVM with clang-cpp
The ClangFormat plugin needs to link against clang-cpp in that
case as well.
Fixes: QTCREATORBUG-25138
Change-Id: I84b1784b291d8944a9dee66ec14db32ad72ff8b5
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindClang.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/FindClang.cmake b/cmake/FindClang.cmake index b515820be1..c745174ca1 100644 --- a/cmake/FindClang.cmake +++ b/cmake/FindClang.cmake @@ -9,8 +9,10 @@ option(CLANGTOOLING_LINK_CLANG_DYLIB "Force linking of Clang tooling against cla if (TARGET clangTooling AND NOT CLANGTOOLING_LINK_CLANG_DYLIB) set(CLANG_TOOLING_LIBS libclang clangTooling clangQuery clangIndex) + set(CLANG_FORMAT_LIB clangFormat) elseif (TARGET clang-cpp) set(CLANG_TOOLING_LIBS libclang clang-cpp) + set(CLANG_FORMAT_LIB clang-cpp) endif() |