[CMake] Are the [Project name]_SOURCE_DIR variables stored in the cache ?
Matthew Woehlke
mw_triad at users.sourceforge.net
Thu May 1 14:35:24 EDT 2014
On 2014-05-01 14:26, Nils Gladitz wrote:
> On 01.05.2014 20:16, Matthew Woehlke wrote:
>> 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?
>>
>
> If they were regular instead of cache variables they would have scopes.
> I guess this would break any project that currently referred to their
> sub- or sibling projects with those variables.
Hmm... that's a good point. I suspect project() could work around the
scope at least by arranging to set them in the root scope, but there
might be other, related issues that could arise.
Nuts :-).
--
Matthew
More information about the CMake
mailing list