diff options
author | Tim Jenssen <tim.jenssen@qt.io> | 2023-01-11 15:48:33 +0100 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@qt.io> | 2023-01-12 10:15:29 +0100 |
commit | 084a69005ba64068d06990828e9e65984af244eb (patch) | |
tree | ebe1611a736e8472febd29eaa2a5127fa997cba6 | |
parent | f23ab1a4c531ae5a1910458d6fd8f476b31c2d8f (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.txt | 6 |
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 |