From 44917603fa48412a0471d2bba9888367ff83bf24 Mon Sep 17 00:00:00 2001 From: wargio Date: Thu, 11 May 2023 12:59:02 +0800 Subject: [PATCH] Disable KSyntaxHighlighting on Qt6 --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 38f18f17..771bddf1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -140,7 +140,7 @@ if(CUTTER_ENABLE_PYTHON) endif() endif() -if(CUTTER_ENABLE_KSYNTAXHIGHLIGHTING) +if(CUTTER_ENABLE_KSYNTAXHIGHLIGHTING AND (NOT CUTTER_QT6)) if(CUTTER_ENABLE_KSYNTAXHIGHLIGHTING STREQUAL AUTO) find_package(KF5SyntaxHighlighting) if(KF5SyntaxHighlighting_FOUND) @@ -153,6 +153,9 @@ if(CUTTER_ENABLE_KSYNTAXHIGHLIGHTING) set(KSYNTAXHIGHLIGHTING_STATUS ON) endif() else() + if(CUTTER_ENABLE_KSYNTAXHIGHLIGHTING AND CUTTER_QT6) + message(WARNING "KSyntaxHighlighting has been disabled because not supported in QT6") + endif() set(KSYNTAXHIGHLIGHTING_STATUS OFF) endif()