1 function(list_append var)
3 list(FIND ${var} ${arg} index)
5 list(APPEND ${var} ${arg})
8 set(${var} ${${var}} PARENT_SCOPE)
11 function(list_remove var)
13 list(FIND ${var} ${arg} index)
14 if(${index} GREATER -1)
15 list(REMOVE_ITEM ${var} ${arg})
18 set(${var} ${${var}} PARENT_SCOPE)