parameters: (out, 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(out, variable_name, values):
    """Sets a CMake variable to a list."""
    if not values:
      return SetVariable(out, variable_name, "")
    if len(values) == 1:
      return SetVariable(out, variable_name, values[0])
    out.write('list(APPEND "')
    out.write(CMakeStringEscape(variable_name))
    out.write('"\n  "')
    out.write('"\n  "'.join([CMakeStringEscape(value) for value in values]))
    out.write('")\n')
function_tokens: def SetVariableList ( out , variable_name , values ) : if not values : return SetVariable ( out , variable_name , "" ) if len ( values ) == 1 : return SetVariable ( out , variable_name , values [ 0 ] ) out . write ( 'list(APPEND "' ) out . write ( CMakeStringEscape ( variable_name ) ) out . write ( '"\n  "' ) out . write ( '"\n  "' . join ( [ CMakeStringEscape ( value ) for value in values ] ) ) out . write ( '")\n' )