[CMake] --enable-* with cmake

Alexander Neundorf a.neundorf-work at gmx.net
Wed Aug 8 13:28:40 EDT 2007


On Wednesday 08 August 2007 13:05, Andreas Pakulat wrote:
> On 08.08.07 12:46:56, Philip Lowman wrote:
...
> > Actually, it's more like this:
> >
> > cmake -D USE_FOO=BOOL:ON .
> > or
> > cmake -D USE_FOO=BOOL:OFF .
>
> Not quite, the BOOL: is not needed.

It depends.
If you want it to go in the cache, it is better to use it, then it will go in 
the cache.
If you don't specify the type on the command line, it will go only in the 
cache if the type is specified later on somewhere in the cmake files via a 
SET(... CACHE ...) command.

With cmake cvs it always goes in the cache.

Alex


More information about the CMake mailing list