[CMake] CMAKE_MODULE_PATH not remembered?

Alan W. Irwin irwin at beluga.phys.uvic.ca
Thu Aug 23 18:49:36 EDT 2007


On 2007-08-23 16:29-0500 Matthew Woehlke wrote:

> If I set up a build dir with 'cmake -DCMAKE_MODULE_PATH=<somwehere> 
> <path-to-src>', I find that 'make' in the build dir, when cmake needs to be 
> re-run (IIRC 'cmake .' has the same problem) will then fail because it cannot 
> find a module I INCLUDE().

Try cmake -DCMAKE_MODULE_PATH:PATH=<somwehere>

There is an undocumented feature of CMake where untyped -D options (like you
tried above) usually work, but sometimes they don't, and I believe this is
probably one of those cases.

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