2012/1/25 Alexander Neundorf <neund...@kde.org>:
> On Wednesday 25 January 2012, Eric Noulard wrote:

>
> cmake already supports CMAKE_MODULE_PATH for generating help, e.g. like this:
> $ cmake -DCMAKE_MODULE_PATH=$HOME/src/kdelibs/cmake/modules/ --help-custom-
> modules
>
> This generates docs for all cmake files in CMAKE_MODULE_PATH.
> --help-module also looks in CMAKE_MODULE_PATH.
>
> I'm not sure it needs a new variable.

Right, my idea was different than the current "--help-module"
because I intend to get "variable" or "command" using
--help-variable-*
--help-command-*
for (may be user) scripts files.

This is not the same as generating "all doc" for a bunch of modules.
In my case you could do:

cmake -DCMAKE_MODULE_PATH=$HOME/src/kdelibs/cmake/modules/ --help-command-list

and get all commands defined (in fact documented) in the "module" file found in
CMAKE_MODULE_PATH.

** this does not work [yet], because currently the list of .cmake
files to be loaded
   for doc parsing is builtin the C++ code **

Nevertheless, Alex is right we can use  user provided CMAKE_MODULE_PATH,
no need to add more vars.

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
--

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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to