You can achieve what you want with two find calls. The first is with NO_DEFAULT_PATH, then if it's not found, the second is without NO_DEFAULT_PATH.<div><br></div><div>That way, yours will be found first, but the system version will be found if yours does not exist.</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br><br><div class="gmail_quote">On Tue, Apr 15, 2008 at 11:18 AM, Alberto Luaces <<a href="mailto:aluaces@udc.es">aluaces@udc.es</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
is there any way for the FIND_* macros (FIND_PATH, FIND_LIBRARY...) to search<br>
first in the directories specified on the script and after that on common<br>
system directories?<br>
<br>
According to what I have read, it's done in the opposite order, so if I have a<br>
private project branch in my home directory, CMake will always find system's<br>
version instead. If I add NO_DEFAULT_PATH but my private branch doesn't<br>
exist, CMake won't find any.<br>
<br>
Thank you,<br>
<br>
Alberto<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>