summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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}")