summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@gmail.com>2022-09-07 18:42:27 +1000
committerLorn Potter <lorn.potter@gmail.com>2022-09-09 09:03:39 +1000
commit497cd38c1a9f84dada6b92dd8fe053b82ba42c8d (patch)
treea1a45ede0b5f41e03edab2345151031b04529224 /src
parentfe486d0fb42828151374d4ed0ca8db622a73745f (diff)
wasm: fix setting RUNTIME_OUTPUT_DIRECTORY
match does not work, as cmake uses a string for NOTFOUND Change-Id: I160a1f7ed69592b85fcbf0d8b5773713121ee9a4 Reviewed-by: David Skoland <david.skoland@qt.io> Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/Qt6WasmMacros.cmake4
1 files 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}")