aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2023-01-11 15:48:33 +0100
committerTim Jenssen <tim.jenssen@qt.io>2023-01-12 10:15:29 +0100
commit084a69005ba64068d06990828e9e65984af244eb (patch)
treeebe1611a736e8472febd29eaa2a5127fa997cba6
parentf23ab1a4c531ae5a1910458d6fd8f476b31c2d8f (diff)
Fix error when re-configuring the already installed components
error was: add_library cannot create ALIAS target ... because another target with the same name already exists. fix: We pretend to be a Qt repository build of qtdeclarative. Change-Id: Ib1e20a0d12e7a0e3467e650f4e1ae63a9a24fa70 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index be31b7d..cd6f530 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,12 @@ project(QtQuickDesignerComponents
set(CMAKE_AUTOMOC ON)
+# Enable reconfiguration of already installed version via
+# pretend we are inside a qtdeclarative build.
+# this activates an early bail out (already existing hack)
+# This needs to be called before any find(Qt* is called.
+set(QT_REPO_DEPENDENCIES "qtdeclarative")
+
find_package(Qt6
CONFIG
REQUIRED