Re: [CMake] Can an option enforce a default, even if cache is present?

2018-11-28 Thread Mario Emmenlauer
On 28.11.18 12:38, Petr Kmoch wrote: > On Tue, 27 Nov 2018 at 21:42, frodak > wrote: > > On Tue, Nov 27, 2018 at 3:15 PM Mario Emmenlauer > wrote: > > > > On 27.11.18 17:13, Eric Noulard wrote: > > > Le mar. 27 nov. 2018 à 1

Re: [CMake] Can an option enforce a default, even if cache is present?

2018-11-28 Thread Petr Kmoch
On Tue, 27 Nov 2018 at 21:42, frodak wrote: > On Tue, Nov 27, 2018 at 3:15 PM Mario Emmenlauer > wrote: > > > > On 27.11.18 17:13, Eric Noulard wrote: > > > Le mar. 27 nov. 2018 à 14:50, Mario Emmenlauer > > > a écrit : > > > Dear all, > > > > > > I've just d

Re: [CMake] Can an option enforce a default, even if cache is present?

2018-11-27 Thread frodak
On Tue, Nov 27, 2018 at 3:15 PM Mario Emmenlauer wrote: > > On 27.11.18 17:13, Eric Noulard wrote: > > Le mar. 27 nov. 2018 à 14:50, Mario Emmenlauer > > a écrit : > > Dear all, > > > > I've just discovered that option() behaves differently than I > > anticipa

Re: [CMake] Can an option enforce a default, even if cache is present?

2018-11-27 Thread Mario Emmenlauer
On 27.11.18 17:13, Eric Noulard wrote: Le mar. 27 nov. 2018 à 14:50, Mario Emmenlauer > a écrit : Dear all, I've just discovered that option() behaves differently than I anticipated. After reading the docs and searching with google I'm still confused how t

Re: [CMake] Can an option enforce a default, even if cache is present?

2018-11-27 Thread Eric Noulard
Le mar. 27 nov. 2018 à 14:50, Mario Emmenlauer a écrit : > > Dear all, > > I've just discovered that option() behaves differently than I anticipated. > After reading the docs and searching with google I'm still confused how to > achieve my desired behaviour. > > What I've just learned is that uns

Re: [CMake] Can an option enforce a default, even if cache is present?

2018-11-27 Thread Roger Leigh
On 27/11/2018 13:49, Mario Emmenlauer wrote: I've just discovered that option() behaves differently than I anticipated. After reading the docs and searching with google I'm still confused how to achieve my desired behaviour. What I've just learned is that unspecified options take their cached v

[CMake] Can an option enforce a default, even if cache is present?

2018-11-27 Thread Mario Emmenlauer
Dear all, I've just discovered that option() behaves differently than I anticipated. After reading the docs and searching with google I'm still confused how to achieve my desired behaviour. What I've just learned is that unspecified options take their cached value and do *not* go back to their