[CMake] Check if variable is already is cache
Alexander Neundorf
a.neundorf-work at gmx.net
Wed May 13 12:32:09 EDT 2009
On Wednesday 13 May 2009, Marcel Loose wrote:
> Hi all,
>
> I vaguely remember I read on this mailing list that it is possible to
> check whether a variable is already in cache. Something like this:
>
> if(CACHED var)
> ...
> endif(CACHED var)
>
> However, I cannot find anything about this in the manual.
> Is it possible, or does my memory serve me bad?
In doubt, check the sources:
http://public.kitware.com/cgi-bin/viewcvs.cgi/Source/cmIfCommand.cxx?root=CMake&view=markup
Doesn't seem so.
Alex
More information about the CMake
mailing list