https://github.com/Kitware/CMake
Raw File
Tip revision: c4ab098097f4fe1bc85ee29c6de390dff435f63f authored by Brad King on 09 August 2018, 12:06:18 UTC
CMake 3.12.1
Tip revision: c4ab098
option.rst
option
------

Provides an option that the user can optionally select.

::

  option(<option_variable> "help string describing option"
         [initial value])

Provide an option for the user to select as ``ON`` or ``OFF``.  If no
initial value is provided, ``OFF`` is used.

If you have options that depend on the values of other options, see
the module help for :module:`CMakeDependentOption`.
back to top