[CMake] Persistency of cmake options

Alexander Neundorf a.neundorf-work at gmx.net
Mon Nov 19 12:12:33 EST 2007


On Monday 19 November 2007, Salvatore Iovene wrote:
> Hi,
>
> If I call cmake with, say, -DFOO:STRING=Bar, how can I do so that the
> value of FOO will be remembered the next time cmake is issued, without
> having to give it explicitly? This is particularly usefule in case I

If you use the type as given in your example it will always go in the cache.
If you omit the type, it will go in the cache if the type is defined later on 
in any of the cmake files or if you are using cmake cvs.

Alex


More information about the CMake mailing list