And, just as a caution: Don&#39;t use file(GLOB to create a list of source files to compile.  Search the wiki or the archives for info.<div><br></div><div>Ryan<br><br><div class="gmail_quote">On Wed, Jan 12, 2011 at 12:05 PM, Andreas Pakulat <span dir="ltr">&lt;<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 12.01.11 11:56:53, kent williams wrote:<br>
&gt; I&#39;m generating a list of files with file(GLOB), but then I want to<br>
&gt; remove some filenames from the resulting list.<br>
&gt;<br>
&gt; So essentially I&#39;d like a CMake function like this<br>
&gt;<br>
&gt; function(RemoveItemsFromList ListA ListToRemove)<br>
&gt; endfunction(RemoveItemsFromList)<br>
&gt;<br>
&gt; and I don&#39;t know what to put in the middle ;-)<br>
<br>
</div>There&#39;s no need for a function, the list() function can already do that:<br>
<br>
list( REMOVE_ITEM yourlist ${listToRemove} )<br>
<br>
Andreas<br>
<font color="#888888"><br>
--<br>
Give thought to your reputation.  Consider changing name and moving to<br>
a new town.<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Ryan Pavlik<br>HCI Graduate Student<br>Virtual Reality Applications Center<br>Iowa State University<br><br><a href="mailto:rpavlik@iastate.edu">rpavlik@iastate.edu</a><br>
<a href="http://academic.cleardefinition.com">http://academic.cleardefinition.com</a><br>Internal VRAC/HCI Site: <a href="http://tinyurl.com/rpavlik">http://tinyurl.com/rpavlik</a><br>
</div>