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()