Skip to content

Commit

Permalink
Check property existence before use
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims committed Oct 18, 2023
1 parent b991b58 commit e350476
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Tests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ function(_get_configs_execute_args variable_name)

foreach(config IN LISTS ARGN)
get_target_property(execute_args ${config} PROJECT_OPTIONS_EXECUTE_ARGS)
list(APPEND variable_name ${execute_args})
if(execute_args)
list(APPEND variable_name ${execute_args})
endif()
endforeach()

set(${variable_name} ${value} PARENT_SCOPE)
Expand Down

0 comments on commit e350476

Please sign in to comment.