From 148449d6fe0cf4219d00ba68fed57ec9a0947d40 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Wed, 19 Jan 2022 11:49:25 +0200 Subject: [PATCH] wasm: fix installation when staging prefix is used Change-Id: I2f9acdd977702f78c75eaeb67fc67f1b82836ff7 Reviewed-by: Alexandru Croitor (cherry picked from commit 003a37aef19716a055486d936fdd140ba0d22496) --- src/plugins/platforms/wasm/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/platforms/wasm/CMakeLists.txt b/src/plugins/platforms/wasm/CMakeLists.txt index 00f86b837ce..130af2dec69 100644 --- a/src/plugins/platforms/wasm/CMakeLists.txt +++ b/src/plugins/platforms/wasm/CMakeLists.txt @@ -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.