File 002-clang-14.0.1.patch of Package qtcreator
diff -uprN qt-creator-opensource-src-14.0.1-orig/src/plugins/clangcodemodel/CMakeLists.txt qt-creator-opensource-src-14.0.1/src/plugins/clangcodemodel/CMakeLists.txt
--- qt-creator-opensource-src-14.0.1-orig/src/plugins/clangcodemodel/CMakeLists.txt 2024-08-06 03:26:37.000000000 +0200
+++ qt-creator-opensource-src-14.0.1/src/plugins/clangcodemodel/CMakeLists.txt 2024-11-03 17:40:59.321420576 +0100
@@ -4,6 +4,7 @@ if(WITH_TESTS)
endif()
add_qtc_plugin(ClangCodeModel
+ CONDITION TARGET ${CLANG_FORMAT_LIB}
DEPENDS CPlusPlus
PLUGIN_DEPENDS Core CppEditor LanguageClient ${TEST_LINK_DEPENDS} TextEditor
PLUGIN_TEST_DEPENDS QmakeProjectManager
diff -uprN qt-creator-opensource-src-14.0.1-orig/src/plugins/clangtools/CMakeLists.txt qt-creator-opensource-src-14.0.1/src/plugins/clangtools/CMakeLists.txt
--- qt-creator-opensource-src-14.0.1-orig/src/plugins/clangtools/CMakeLists.txt 2024-08-06 03:26:37.000000000 +0200
+++ qt-creator-opensource-src-14.0.1/src/plugins/clangtools/CMakeLists.txt 2024-11-03 17:41:37.694556874 +0100
@@ -3,7 +3,7 @@ find_package(yaml-cpp QUIET MODULE)
set(CLANG_VERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH})
add_qtc_plugin(ClangTools
- CONDITION TARGET yaml-cpp
+ CONDITION TARGET ${CLANG_FORMAT_LIB} AND TARGET yaml-cpp
DEPENDS yaml-cpp
PLUGIN_DEPENDS Core Debugger CppEditor
PLUGIN_RECOMMENDS CppEditor