File 002-clang-15.0.0.patch of Package qtcreator
diff -uprN qt-creator-opensource-src-15.0.0-orig/src/plugins/clangcodemodel/CMakeLists.txt qt-creator-opensource-src-15.0.0/src/plugins/clangcodemodel/CMakeLists.txt
--- qt-creator-opensource-src-15.0.0-orig/src/plugins/clangcodemodel/CMakeLists.txt 2024-11-27 11:00:23.000000000 +0100
+++ qt-creator-opensource-src-15.0.0/src/plugins/clangcodemodel/CMakeLists.txt 2024-12-08 14:36:34.315707355 +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-15.0.0-orig/src/plugins/clangtools/CMakeLists.txt qt-creator-opensource-src-15.0.0/src/plugins/clangtools/CMakeLists.txt
--- qt-creator-opensource-src-15.0.0-orig/src/plugins/clangtools/CMakeLists.txt 2024-11-27 11:00:23.000000000 +0100
+++ qt-creator-opensource-src-15.0.0/src/plugins/clangtools/CMakeLists.txt 2024-12-08 14:36:34.315707355 +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