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

John Drescher drescherjm at gmail.com
Thu May 1 14:18:09 EDT 2014


On Thu, May 1, 2014 at 2:16 PM, Matthew Woehlke
<mw_triad at users.sourceforge.net> wrote:
> 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?
>

I see now. Sorry for the noise..

John


More information about the CMake mailing list