wasm: fix installation when staging prefix is used

Change-Id: I2f9acdd977702f78c75eaeb67fc67f1b82836ff7
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Samuli Piippo 2022-01-19 11:49:25 +02:00
parent df8456061e
commit 003a37aef1

View File

@ -68,9 +68,10 @@ set(wasm_support_files
qtlogo.svg
)
qt_path_join(destination ${QT_INSTALL_DIR} "plugins/platforms")
qt_copy_or_install(FILES
${wasm_support_files}
DESTINATION "${CMAKE_INSTALL_PREFIX}/plugins/platforms"
DESTINATION "${destination}"
)
# Need to copy the support files to the build dir in a top-level prefix build
# So _qt_internal_wasm_add_target_helpers finds them.