[CMake] List of Commands/Constants/Keywords

Bill Hoffman bill.hoffman at kitware.com
Sun Nov 19 15:21:39 EST 2006


Mike Jackson wrote:
> cmake --help-commands doesn't list anything: Here is the output:
> [_Mike]$ cmake --help-commands
> CMake Error: The source directory "/home/welsh/For_Mike/--help-commands"
> does not exist.
> Specify --help for usage, or press the help button on the CMake GUI.
>
> I did take a look at the vim spec and that got me started. Most of the
> commands are now highlighted properly.
>
> The list of CMAKE_* would be helpful to list in the language definition so
> that those constants show up differently and I am working on that part.
>
> I was hoping that there was someway to either run a command or grep the
> cmake sources and get a definitive list of commands.
>
> Same thing for a list of CMAKE_* constants.. And any other constants that
> Cmake defines.
>   
Sorry, you can do cmake --help-command foo, but you want  cmake 
--help-command-list.
The script Brandon sent is as good as it gets right now with variables. 

-Bill




More information about the CMake mailing list