Skip to content

Commit da02889

Browse files
committed
Check property existence before use
1 parent d915c0b commit da02889

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Tests.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ function(_get_configs_execute_args variable_name)
166166

167167
foreach(config IN LISTS ARGN)
168168
get_target_property(execute_args ${config} PROJECT_OPTIONS_EXECUTE_ARGS)
169-
list(APPEND variable_name ${execute_args})
169+
if(execute_args)
170+
list(APPEND variable_name ${execute_args})
171+
endif()
170172
endforeach()
171173

172174
set(${variable_name} ${value} PARENT_SCOPE)

0 commit comments

Comments
 (0)