On Thursday 23 August 2007 18:49, Alan W. Irwin wrote:
> 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.

The variable ends up in the cache, if
a) the type is given at the command line
or
b) the type is not given but in any of the cmake files the type is set (and 
put in the cache)

With cmake cvs it it always stored in the cache.

Alex
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to