Hello list,
I've been using CMake for quite some time and have only now found out
this disturbing difference between SET(X) and SET(X ""). It happens in
cmake -P mode when you try to unset variables which are defined on the
command line, e.g.
cmake -DX=Y -P x.cmake
This x.cmake gives "X=Y":
SET(X)
MESSAGE("X=${X}")
This, too, gives "X=Y":
UNSET(X)
MESSAGE("X=${X}")
This one finally gives "X=" (which I would have expected in the first place):
SET(X "")
MESSAGE("X=${X}")
Is this OK? Is this documented anywhere?
Best regards,
--
DoubleF
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake