view src/qt6-qttools-1-libclang.patch @ 7103:8acdb722fac4

* src/sdl2.mk: update to v2.30.1
author John Donoghue <john.donoghue@ieee.org>
date Mon, 11 Mar 2024 10:22:37 -0400
parents a0e9deadb221
children
line wrap: on
line source

Don't check for libclang when building without it.

diff -urN qttools-everywhere-src-6.5.2/configure.cmake qttools-everywhere-src-6.5.2/configure.cmake.orig
--- qttools-everywhere-src-6.5.2/configure.cmake.orig	2023-07-07 14:29:26.000000000 +0200
+++ qttools-everywhere-src-6.5.2/configure.cmake	2023-09-29 10:39:40.324294579 +0200
@@ -17,7 +17,9 @@
 # Presumably because 6.0 ClangConfig.cmake files are not good enough?
 # In any case explicitly request a minimum version of 8.x for now, otherwise
 # building with CMake will fail at compilation time.
+if (QT_FEATURE_clang)
 qt_find_package(WrapLibClang 8 PROVIDED_TARGETS WrapLibClang::WrapLibClang)
+endif()
 # special case end
 
 if(TARGET WrapLibClang::WrapLibClang)