On Tue, Feb 10, 2009 at 3:35 AM, Micha Renner <[email protected]>wrote:

> Hallo,
>
> what is the difference between
> SET(variable )
> and
> UNSET(variable)


Nothing.  The unset command was added for completeness and so that there
could be an additional option added to it to allow removal of cache
variables.  Also, it is often the case that someone reading CMake scripts
for the first time might be confused over the meaning of set(foo) and think
that it defines a variable setting it to empty when it actually undefines a
variable.  Hopefully over time, unset() will remove any confusion here.  The
command will be in the 2.6.3 release.  Obviously please be careful using
this command if compatibility with earlier versions of CMake is a concern.

-- 
Philip Lowman
_______________________________________________
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

Reply via email to