[CMake] PARENT_SCOPE for unset()?

Robert Dailey rcdailey at gmail.com
Thu Feb 9 14:41:34 EST 2012


I didn't try that because I thought it would actually treat PARENT_SCOPE as
a string and add it to the variable. I did this instead:

set( var "" PARENT_SCOPE )

---------
Robert Dailey


On Thu, Feb 9, 2012 at 1:26 PM, David Cole <david.cole at kitware.com> wrote:

> On Thu, Feb 9, 2012 at 2:22 PM, Alexander Neundorf <
> a.neundorf-work at gmx.net> wrote:
>
>> On Thursday 09 February 2012, Robert Dailey wrote:
>> > It would seem useful to have a PARENT_SCOPE option for the unset()
>> command,
>> > just like its set() counterpart. Is there a particular reason why it
>> does
>> > not have it now?
>>
>> No, I think there is not particular reason.
>>
>> Alex
>> --
>>
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>>
>
>
> Does:
>
>   set(var PARENT_SCOPE)
>
> have the intended effect?
>
> (If so, you could use that until such time as PARENT_SCOPE is added to
> unset.)
>
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120209/aeb20eb5/attachment.htm>


More information about the CMake mailing list