[CMake] Diff output from CMake?
Clifford Yapp
cliffyapp at gmail.com
Tue Sep 13 17:09:11 EDT 2011
Eric -
Excellent! That looks like it will do the trick.
Thank you!
CY
On Tue, Sep 13, 2011 at 4:53 PM, Eric Noulard <eric.noulard at gmail.com>wrote:
>
> If I understand it well you want to compute "symmetric difference".
>
> Assuming BUILD_FILES and SVN_FILES initially contains the whole list of
> names.
> Then could you try:
>
> set(BUILD_FILES_UNIQUE ${BUILD_FILES})
> set(SVN_FILES_UNIQUE ${SVN_FILES})
> list(REMOVE_ITEM BUILD_FILES_UNIQUE ${SVN_FILES})
> list(REMOVE_ITEM SVN_FILES_UNIQUE ${BUILD_FILES})
>
> I don't know about the performance of this with huge list but after that
> BUILD_FILES_UNIQUE and SVN_FILES_UNIQUE should contains what you want. at
> least it work on my small (attached) example.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110913/4947d64e/attachment.htm>
More information about the CMake
mailing list