summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-05-19 15:33:47 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-05-20 09:43:30 +0000
commitd076ebe19669cc78227a63b67da444282e767608 (patch)
tree999a8ae57044d8b58690c5924fda79c47fb61e86
parentc932ad7e7518043851066ebdad340d2d1c092d1d (diff)
downloadqtwebchannel-d076ebe19669cc78227a63b67da444282e767608.tar.gz
Use fixed qt_add_resource BASE argument
Task-number: QTBUG-86726 Change-Id: I8372086c40043a6bd1d306b6bfb711e96ddc7cb7 Reviewed-by: Arno Rehn <a.rehn@menlosystems.com>
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1943964..629180a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,6 +10,9 @@ project(QtWebChannel
LANGUAGES CXX C
)
+# Make sure we use the fixed BASE argument of qt_add_resource.
+set(QT_USE_FIXED_QT_ADD_RESOURCE_BASE TRUE)
+
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core) # special case
find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Quick Test QuickTest WebSockets) # special case