[cmake-developers] Review request: set_emptyvar_PARENT_SCOPE

Matthew Woehlke matthew.woehlke at kitware.com
Mon Nov 11 11:52:29 EST 2013


On 2013-11-11 05:13, Daniele E. Domenichelli wrote:
> I've pushed a patch to the set_emptyvar_PARENT_SCOPE topic.
> This patch introduces a new policy (CMP0040) to control the behaviour of
>
>      set(var "" PARENT_SCOPE)
>
> the OLD behaviour is to unset the "var" variable in the parent scope
> the NEW behaviour is to set it as an empty string (coherently with set(var ""))

WCTS, how does one now unset a variable in parent scope?

I recall some time back there was talk of adding PARENT_SCOPE to 
unset(). If set() can no longer be used for this purpose, maybe unset() 
should gain a PARENT_SCOPE option first / at the same time?

-- 
Matthew




More information about the cmake-developers mailing list