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">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">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><br>Guillaume<br><br>