Re: [CMake] unset(PARENT_SCOPE)

2013-10-08 Thread Brad King
On 09/17/2013 02:00 PM, James Bigler wrote: If there is a set(PARENT_SCOPE) why isn't there an unset(PARENT_SCOPE)? It seems like a hole in the API. Yes, I'll look at adding it. You should be able to use set(var PARENT_SCOPE) to unset. The unset command is mostly a readability convenience.

[CMake] unset(PARENT_SCOPE)

2013-09-17 Thread James Bigler
If there is a set(PARENT_SCOPE) why isn't there an unset(PARENT_SCOPE)? It seems like a hole in the API. I noticed this when I was trying to update my push_variable/pop_variable functions. I use set(PARENT_SCOPE) to set the variable outside of the function, but when doing pop_variable I want to

Re: [CMake] unset(PARENT_SCOPE)

2013-09-17 Thread Matthew Woehlke
On 2013-09-17 14:00, James Bigler wrote: If there is a set(PARENT_SCOPE) why isn't there an unset(PARENT_SCOPE)? It seems like a hole in the API. I noticed this when I was trying to update my push_variable/pop_variable functions. I use set(PARENT_SCOPE) to set the variable outside of the