[CMake] Re: CMAKE_MODULE_PATH not remembered?

Matthew Woehlke mw_triad at users.sourceforge.net
Fri Aug 24 10:51:03 EDT 2007


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?

-- 
Matthew
Help! Someone let me off this crazy thing!



More information about the CMake mailing list