Copy qt_set01 to a central location

Pick-to: 6.8
Change-Id: I05b3ef4d02dd1f8583eea9960c3776409f2f3b2e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 9d78275f229f4ed26817c549bf1d8ef73ce371e3)
This commit is contained in:
Cristian Le 2025-02-18 17:16:01 +01:00
parent ac5ceb289d
commit 7ce45eb4ac

View File

@ -884,3 +884,11 @@ function(_qt_internal_configure_file mode)
configure_file("${input_file}" "${arg_OUTPUT}" @ONLY)
endfunction()
function(qt_set01 result)
if (${ARGN})
set("${result}" 1 PARENT_SCOPE)
else()
set("${result}" 0 PARENT_SCOPE)
endif()
endfunction()