aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/Qt6QmlMacros.cmake
diff options
context:
space:
mode:
authorLeander Beernaert <leander.beernaert@qt.io>2020-02-05 13:01:14 +0100
committerLeander Beernaert <leander.beernaert@qt.io>2020-02-05 12:51:04 +0000
commit426585304e8e862dc2209a53a9c800838490154c (patch)
tree6a9eb8cf807417f1a5fc2a750a7c9065a69a6774 /src/qml/Qt6QmlMacros.cmake
parent49dbef650e2eedf178e310ac78eaba95f400584e (diff)
Copy qml files for non-prefix builds
Change-Id: Id912998aaec1807cca0ae2621d49a463ec17fe6d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/qml/Qt6QmlMacros.cmake')
-rw-r--r--src/qml/Qt6QmlMacros.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qml/Qt6QmlMacros.cmake b/src/qml/Qt6QmlMacros.cmake
index 727dfaff97..49a74afdd5 100644
--- a/src/qml/Qt6QmlMacros.cmake
+++ b/src/qml/Qt6QmlMacros.cmake
@@ -393,7 +393,11 @@ function(qt6_target_qml_files target)
set(file_contents "")
foreach(qml_file IN LISTS arg_FILES)
if (install_qml_files)
- install(FILES ${qml_file} DESTINATION ${qml_module_install_dir})
+ if (NOT QT_WILL_INSTALL)
+ file(COPY "${qml_file}" DESTINATION "${qml_module_install_dir}")
+ else()
+ install(FILES "${qml_file}" DESTINATION "${qml_module_install_dir}")
+ endif()
endif()
if (skip_type_registration AND qml_file MATCHES "\\.qml$")