You should be able to set the variables to be &quot;internal&quot; cache variables after-the-fact - see <a href="http://www.cmake.org/cmake/help/cmake-2-8-docs.html#section_Properties%20on%20Cache%20Entries">http://www.cmake.org/cmake/help/cmake-2-8-docs.html#section_Properties%20on%20Cache%20Entries</a><div>
<br></div><div>That would at least keep them entirely out of the gui, even in advanced mode.</div><div><br></div><div>Ryan<br><br><div class="gmail_quote">On Thu, Mar 4, 2010 at 4:27 PM, Guillaume Duhamel <span dir="ltr">&lt;<a href="mailto:guillaume.duhamel@gmail.com">guillaume.duhamel@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I ended up writing my own macro to do the job:<br><a href="http://code.google.com/p/soupcon/source/browse/trunk/findxul/FMP.cmake" target="_blank">http://code.google.com/p/soupcon/source/browse/trunk/findxul/FMP.cmake</a><br>
there&#39;s also some usage example in my FindXUL module:<br>
<a href="http://code.google.com/p/soupcon/source/browse/trunk/findxul/FindXUL.cmake" target="_blank">http://code.google.com/p/soupcon/source/browse/trunk/findxul/FindXUL.cmake</a><br><br>That&#39;s a bit more complex than what I described as it&#39;s able to find multiple groups of files in multiple groups of possible paths + path_suffixes.<br>

That&#39;s my first time at writing CMake modules so I guess I did a number of things wrong, but at least it&#39;s working enough to compile my XUL based app on linux / mac / windows :)<br><br>There&#39;s at least one thing I really don&#39;t like about that macro though, it generates too many variables in the cache. There&#39;s NxM find_path calls (with N being the number of file to find and M the number of path groups), each one generating a cache variable and those variable are just &quot;temporary&quot; variables.<br>

Is there any way to clean those useless cache variables?<br><font color="#888888"><br>Guillaume<br><br>
</font><br>_______________________________________________<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></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>