[CMake] Find preferentially in /usr/local/lib not working

Matthew Woehlke mw_triad at users.sourceforge.net
Tue Apr 1 17:51:19 EDT 2008


Matthew Woehlke wrote:
> Stephen Collyer wrote:
>> However, this is a pain - I'd rather have cmake reconstruct the cached
>> FIND_PATH values each time I run it, without my having to remove it
>> or alter it manually - is that possible ?
> 
> Try this: before calling FIND_PATH(foo ...), add SET(foo foo-NOTFOUND) 
> (you may need SET(foo CACHE FORCE foo-NOTFOUND)).

Clarification: this will bypass the cache and make cmake search again 
every time /cmake/ is run, but not every time make is run.

If the objective is hacking on the CMakeLists.txt without having to nuke 
the cache all the time, this should help.

-- 
Matthew
Yesterday, I thought of the best .sig that has ever been contemplated. 
Alas, I forgot it before I could write it down.



More information about the CMake mailing list