title: How to pass a list of lists to CMake macro
body: <p>How can I pass a list of lists to a CMake macro?</p>
  
  <p>If I do </p>
  
  <pre><code>MACRO(Exclude_From_List)
    FOREACH(arg ${ARGN})
      MESSAGE(${arg})
    ENDFOREACH()
  ENDMACRO()
  </code></pre>
  
  <p>and call it like</p>
  
  <pre><code>EXCLUDE_FROM_LIST("${List1}" "${List2}" EXCLUDE "ToRemove")
  </code></pre>
  
  <p>I will lose the lists which I still need after the macro. I just want a list of patterns (in this case ToRemove) beeing removed from every list which contains the entry.</p>
  
  <p>Thanks!</p>