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

Matthew Woehlke mw_triad at users.sourceforge.net
Mon Mar 31 21:03:01 EDT 2008


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)).

-- 
Matthew
I think I want my tombstone to read:
<name>
Process created <date of birth>
Signal 15 received <date of death>



More information about the CMake mailing list