[CMake] Add --help-option command line option.
Nicolas Desprès
nicolas.despres at gmail.com
Fri Apr 20 05:23:08 EDT 2012
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)
?
Cheers,
--
Nicolas Desprès
More information about the CMake
mailing list