c++ - Supply help info in cmake script -


i'd able supply end users info build (such build flags, ect) within cmake script. like

cmake -g "visual studio 2010 win64" projectpath --help  configures foo project. sytnax: cmake -g "visual studio 2010 win64" projectpath --help [options]  options -dnotest=1 disables test code  (ect) 

is there built in way this?

when define options or cache variables, there parameter specifies string. users see string depending on how they're running cmake. in gui, options show after initial configuration , users can see text hovering on it. command line, after running cmake once, command cmake -lh display variables text. see:


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -