Use something like
SET (GUI ${GUI} CACHE BOOL "description")
To put proper initial value from command line into cache. It won't be
overwritten on the second run.
On Jul 1, 2011 2:02 PM, "pellegrini" wrote:
> Hello everybody,
>
> there is a behaviour I do not understand when using cmake with -D op
On 07/01/2011 12:02 PM, pellegrini wrote:
> Hello everybody,
>
> there is a behaviour I do not understand when using cmake with -D option.
>
> In my project I defined a few CACHE variables. One of them is GUI to
> specify whether or not my project should be
> built with graphical library support
Hello everybody,
there is a behaviour I do not understand when using cmake with -D option.
In my project I defined a few CACHE variables. One of them is GUI to
specify whether or not my project should be
built with graphical library support.
So in my main CMakeLists.txt I wrote something like