From 8474969e938551bbd488c33dfa5d902cd617f43c Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Sun, 29 Mar 2026 10:07:29 +0800 Subject: [PATCH] Fix build on macOS The error was: Target "RiveQtQuickPlugin" links to: Qt6::CorePrivate but the target was not found. The same also applied to GuiPrivate and QuickPrivate. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a8eb177..a8bf545 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,8 +35,8 @@ endif() include(FeatureSummary) # Find Qt package -find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Gui Qml Quick OpenGL ) -find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Qml Gui Quick OpenGL) +find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core CorePrivate Gui GuiPrivate Qml Quick QuickPrivate OpenGL) +find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core CorePrivate Qml Gui GuiPrivate Quick QuickPrivate OpenGL) if (${QT_VERSION_MAJOR} EQUAL 6) # TODO use new policy