aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/Qt6QmlMacros.cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-08-14 18:43:07 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-08-16 10:50:27 +0200
commit98ed26a2db244bc0a1711144b7fe843497fd9a82 (patch)
treee4a7cf7b0fa832a01501ca6d9a5ac40082169abf /src/qml/Qt6QmlMacros.cmake
parent06b3d7ceb732588633e51e6580675b2a2595fe8d (diff)
CMake: Fix incorrect variable name check in qt6_import_qml_plugins
The function checked for Qt6_IS_SHARED_LIBS_BUILD instead of QT6_IS_SHARED_LIBS_BUILD which ended up executing qmlimportscanner in a shared build as well, thus breaking building examples in a shared build. Fix that. Amends 9a79791e7975de811102f89686a5d631eeac9d16. Task-number: QTBUG-85961 Task-number: QTBUG-85994 Change-Id: I4869aae182a5cf85fdd9fd04a41dc4c53e9157b7 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/Qt6QmlMacros.cmake')
-rw-r--r--src/qml/Qt6QmlMacros.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/Qt6QmlMacros.cmake b/src/qml/Qt6QmlMacros.cmake
index bf59fba446..d16e48c420 100644
--- a/src/qml/Qt6QmlMacros.cmake
+++ b/src/qml/Qt6QmlMacros.cmake
@@ -838,7 +838,7 @@ endfunction()
include(CMakeParseArguments)
function(qt6_import_qml_plugins target)
- if(${QT_CMAKE_EXPORT_NAMESPACE}_IS_SHARED_LIBS_BUILD)
+ if(QT6_IS_SHARED_LIBS_BUILD)
return()
endif()
set(options)