[CMake] List operations
Andreas Pakulat
apaku at gmx.de
Wed Jan 12 13:05:24 EST 2011
On 12.01.11 11:56:53, kent williams wrote:
> 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 ;-)
There's no need for a function, the list() function can already do that:
list( REMOVE_ITEM yourlist ${listToRemove} )
Andreas
--
Give thought to your reputation. Consider changing name and moving to
a new town.
More information about the CMake
mailing list