[CMake] Add --help-option command line option.

Rolf Eike Beer eike at sf-mail.de
Fri Apr 20 13:01:17 EDT 2012


On Fr., 20. Apr. 2012 11:23:08 CEST, Nicolas Desprès <nicolas.despres at gmail.com> wrote:

> On Fri, Apr 20, 2012 at 10:58 AM, Rolf Eike Beer <eike at sf-mail.de> wrote:
> > > Hi,
> > > 
> > > I have noticed that most cmake based projects document their options
> > > in their README file whereas the documentation is already included in
> > > cmake when you call the option() and set() commands. I hope this
> > > feature will help to remove this duplication and people will just
> > > write in their README file a "see cmake --help-options for available
> > > build options".
> > > 
> > > Comments?
> > 
> > This sounds like a good idea to me.
> Thanks!
> > Don't forget about
> > CMAKE_DEPENDENT_OPTION ;)
> Sorry but I don't get it. Are you speaking about options that enable
> other options like in:
> 
> option(FOO "Foo doc" OFF)
> if(FOO)
>     option(BAR "Bar doc" OFF)
> endif(FOO)

No, about the macro defined by the CMakeDependentOption module.

Eike
-- 



More information about the CMake mailing list