On 05/30/2014 12:12 PM, David Cole wrote:
The cache is telling you:
"//No help, variable specified on the command line."
If you want the help string from your sources to appear in the
CMakeCache.txt, then don't specify a value for it on the command line...
Delete the cache, and try again without giving the arg on the command
line, and it should pick up the doc string from the source.
HTH,
David C.
It works when you omit the type.
set(FOO "value" CACHE STRING "my docstring")
-DFOO=BAR <- the value is "BAR" but the doc string and type are
initialized by the set()
-DFOO:STRING=BAR <- the doc string and type are not updated by the set()
Nils
--
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://www.cmake.org/mailman/listinfo/cmake