cmake/Help/command/option.rst

16 lines
397 B
ReStructuredText
Raw Normal View History

2014-08-03 19:52:23 +02:00
option
------
Provides an option that the user can optionally select.
::
option(<option_variable> "help string describing option"
[initial value])
2015-11-17 17:22:37 +01:00
Provide an option for the user to select as ``ON`` or ``OFF``. If no
initial value is provided, ``OFF`` is used.
2014-08-03 19:52:23 +02:00
If you have options that depend on the values of other options, see
2015-11-17 17:22:37 +01:00
the module help for :module:`CMakeDependentOption`.