Copy qt_set01
to a central location
Change-Id: I05b3ef4d02dd1f8583eea9960c3776409f2f3b2e Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
2d27183567
commit
9d78275f22
@ -831,3 +831,11 @@ function(_qt_internal_path_is_prefix path_var input out_var)
|
||||
endif()
|
||||
set(${out_var} "${${out_var}}" PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
function(qt_set01 result)
|
||||
if (${ARGN})
|
||||
set("${result}" 1 PARENT_SCOPE)
|
||||
else()
|
||||
set("${result}" 0 PARENT_SCOPE)
|
||||
endif()
|
||||
endfunction()
|
||||
|
Loading…
x
Reference in New Issue
Block a user