diff --git a/CMakeLists.txt b/CMakeLists.txt index f5428101..eb6c1c73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,9 +12,13 @@ project(QtDataVisualization ) find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals) + +# This should be called as early as possible, just after find_package(BuildInternals) where it is +# defined. +qt_internal_project_setup() + find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Core OpenGL Quick Qml Gui Widgets QuickTest Test) -qt_internal_project_setup() macro(assertTargets) foreach(qtTarget IN ITEMS ${ARGN})