Make sure that the result variable is empty in _qt_internal_collect_buildsystem_targets
Add the inside-recursion marker to the _qt_internal_collect_buildsystem_targets function and reset the result variable only in the top-level function call. Amends 1c82e92202c8c359872c08095670c121602094b8 Pick-to: 6.5 6.6 Change-Id: I34b1e1edbb8a799900b95f67b80151b372073d2c Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
parent
c4d598b35b
commit
ea3289460b
@ -102,6 +102,11 @@ endfunction()
|
||||
function(_qt_internal_collect_buildsystem_targets result dir)
|
||||
cmake_parse_arguments(arg "" "" "EXCLUDE;INCLUDE" ${ARGN})
|
||||
|
||||
if(NOT _qt_internal_collect_buildsystem_targets_inner)
|
||||
set(${result} "")
|
||||
set(_qt_internal_collect_buildsystem_targets_inner TRUE)
|
||||
endif()
|
||||
|
||||
set(forward_args "")
|
||||
if(arg_EXCLUDE)
|
||||
set(forward_args APPEND EXCLUDE ${arg_EXCLUDE})
|
||||
|
Loading…
x
Reference in New Issue
Block a user