From 6810c726569dd82c0db42fc80ae3b7e6beb9bb59 Mon Sep 17 00:00:00 2001 From: firewave Date: Tue, 8 Apr 2025 11:41:42 +0200 Subject: [PATCH] fixed macOS Qt build --- gui/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index c33f074ec06..d684ef4b7c2 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -76,8 +76,9 @@ CheckOptions: target_compile_options_safe(cppcheck-gui -Wno-redundant-parens) endif() endif() - if(QT_VERSION VERSION_GREATER_EQUAL "6.9.0") + if(QT_VERSION VERSION_GREATER_EQUAL "6.9.1") # QBrush fails to compile before 6.9.0 - see https://bugreports.qt.io/browse/QTBUG-134038 + # QtCharts/qxyseries.h fails to compile in 6.9.0 - see https://bugreports.qt.io/browse/QTBUG-135637 target_compile_definitions(cppcheck-gui PRIVATE -DQT_NO_QPAIR) endif() target_compile_definitions(cppcheck-gui PRIVATE -DQT_NO_FOREACH)