[CMake] search default paths BEFORE custom paths

Alan W. Irwin irwin at beluga.phys.uvic.ca
Tue Nov 24 16:20:49 EST 2009


On 2009-11-24 13:04-0800 Kenneth Riddile wrote:

> I'm using CMAKE_PREFIX_PATH to specify some custom search paths.  How can I
> make cmake search its default paths BEFORE searching my custom paths?

Call FIND twice.  The first time use NO_DEFAULT_PATH.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the CMake mailing list