[CMake] unset(PARENT_SCOPE)

James Bigler jamesbigler at gmail.com
Tue Sep 17 14:00:56 EDT 2013


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 use unset(PARENT_SCOPE) if
the variable was undefined before push_variable.

Thanks,
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130917/175ab7c0/attachment.htm>


More information about the CMake mailing list