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. That way, yours will be found first, but the system version will be found if yours does not exist.
HTH, David On Tue, Apr 15, 2008 at 11:18 AM, Alberto Luaces <[EMAIL PROTECTED]> wrote: > Hi, > > is there any way for the FIND_* macros (FIND_PATH, FIND_LIBRARY...) to > search > first in the directories specified on the script and after that on common > system directories? > > According to what I have read, it's done in the opposite order, so if I > have a > private project branch in my home directory, CMake will always find > system's > version instead. If I add NO_DEFAULT_PATH but my private branch doesn't > exist, CMake won't find any. > > Thank you, > > Alberto > _______________________________________________ > CMake mailing list > [email protected] > http://www.cmake.org/mailman/listinfo/cmake >
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
