I'm generating a list of files with file(GLOB), but then I want to remove some filenames from the resulting list. So essentially I'd like a CMake function like this function(RemoveItemsFromList ListA ListToRemove) endfunction(RemoveItemsFromList) and I don't know what to put in the middle ;-)