[CMake] Re: CMAKE_MODULE_PATH not remembered?

Alexander Neundorf a.neundorf-work at gmx.net
Fri Aug 24 11:30:52 EDT 2007


On Friday 24 August 2007 10:51, Matthew Woehlke wrote:
> Alexander Neundorf wrote:
> > 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.
>
> Ok, so if I understand...
>
> a: the reason it doesn't work in 2.4.6 is because I didn't specify the
> type. b: this is fixed in CVS
>
> Right?

Yes.

But since this changes the behaviour, this won't be in any 2.4.x release, but 
in 2.6.0.

Alex


More information about the CMake mailing list