parameters: (output, variable_name, values)
docstring: Sets a CMake variable to a list.
docstring_summary: Sets a CMake variable to a list.
docstring_tokens: Sets a CMake variable to a list .
function: def SetVariableList(output, variable_name, values):
    """Sets a CMake variable to a list."""
    if not values:
      return SetVariable(output, variable_name, "")
    if len(values) == 1:
      return SetVariable(output, variable_name, values[0])
    output.write('list(APPEND ')
    output.write(variable_name)
    output.write('\n  "')
    output.write('"\n  "'.join([CMakeStringEscape(value) for value in values]))
    output.write('")\n')
function_tokens: def SetVariableList ( output , variable_name , values ) : if not values : return SetVariable ( output , variable_name , "" ) if len ( values ) == 1 : return SetVariable ( output , variable_name , values [ 0 ] ) output . write ( 'list(APPEND ' ) output . write ( variable_name ) output . write ( '\n  "' ) output . write ( '"\n  "' . join ( [ CMakeStringEscape ( value ) for value in values ] ) ) output . write ( '")\n' )