From 497cd38c1a9f84dada6b92dd8fe053b82ba42c8d Mon Sep 17 00:00:00 2001 From: Lorn Potter Date: Wed, 7 Sep 2022 18:42:27 +1000 Subject: [PATCH] wasm: fix setting RUNTIME_OUTPUT_DIRECTORY MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit match does not work, as cmake uses a string for NOTFOUND Change-Id: I160a1f7ed69592b85fcbf0d8b5773713121ee9a4 Reviewed-by: David Skoland Reviewed-by: Morten Johan Sørvig --- src/corelib/Qt6WasmMacros.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/Qt6WasmMacros.cmake b/src/corelib/Qt6WasmMacros.cmake index ce96c4fbecc..25bb40d88e4 100644 --- a/src/corelib/Qt6WasmMacros.cmake +++ b/src/corelib/Qt6WasmMacros.cmake @@ -15,7 +15,7 @@ function(_qt_internal_wasm_add_target_helpers target) endif() get_target_property(output_name ${target} OUTPUT_NAME) - if(NOT "${output_name}" STREQUAL "") + if(output_name) set(_target_output_name "${output_name}") else() set(_target_output_name "${target}") @@ -36,7 +36,7 @@ function(_qt_internal_wasm_add_target_helpers target) configure_file("${WASM_BUILD_DIR}/libexec/util.js" "${target_output_directory}/util.js" COPYONLY) else() - if(NOT "${target_output_directory}" STREQUAL "") + if(target_output_directory) set(_target_directory "${target_output_directory}") else() set(_target_directory "${CMAKE_CURRENT_BINARY_DIR}")