Re: [CMake] Strange behaviour with -D option

2011-07-06 Thread Yuri Timenkov
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

Re: [CMake] Strange behaviour with -D option

2011-07-02 Thread Michael Hertling
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

[CMake] Strange behaviour with -D option

2011-07-01 Thread pellegrini
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