[CMake] Are the [Project name]_SOURCE_DIR variables stored in the cache ?

Matthew Woehlke mw_triad at users.sourceforge.net
Thu May 1 14:16:13 EDT 2014


On 2014-05-01 13:35, John Drescher wrote:
>> I thought they probably were.  My question was really if the behaviour that
>> results from that was desirable.  I can't see any reason why they should be
>> cached as they aren't user configurable variables.  Would it break anything
>> badly if they were not stored in the cache ?  It would result in more
>> consistent behaviour IMHO.
>>
>
> Executing
>
> cmake .
>
> would fail in the bin folder if it had no way to know where the source
> folder is.

If CMAKE_BINARY_DIR were not cached, yes. But I don't think not caching 
that is being suggested. It's not clear to me why the *per-project* 
flavors need to be cached?

-- 
Matthew



More information about the CMake mailing list