1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 20:55:20 +03:00
aports/testing/qt-creator/llvm-include.patch
psykose f08702c1fc testing/qt-creator: rebuild against libclang-14
and fix the clang-format plugin
2022-06-10 17:46:51 +00:00

13 lines
591 B
Diff

--- a/src/plugins/clangformat/CMakeLists.txt
+++ b/src/plugins/clangformat/CMakeLists.txt
@@ -1,7 +1,9 @@
+find_package(LLVM CONFIG)
+
add_qtc_plugin(ClangFormat
CONDITION TARGET libclang AND LLVM_PACKAGE_VERSION VERSION_GREATER_EQUAL 10.0.0 AND (QTC_CLANG_BUILDMODE_MATCH OR CLANGTOOLING_LINK_CLANG_DYLIB)
DEPENDS Utils Qt5::Widgets ${CLANG_FORMAT_LIB}
- INCLUDES "${CLANG_INCLUDE_DIRS}"
+ INCLUDES ${CLANG_INCLUDE_DIRS} INCLUDES ${LLVM_INCLUDE_DIRS}
PLUGIN_DEPENDS Core TextEditor CppEditor ProjectExplorer
SOURCES
clangformatbaseindenter.cpp clangformatbaseindenter.h