option.rst 397 B

123456789101112131415
  1. option
  2. ------
  3. Provides an option that the user can optionally select.
  4. ::
  5. option(<option_variable> "help string describing option"
  6. [initial value])
  7. Provide an option for the user to select as ``ON`` or ``OFF``. If no
  8. initial value is provided, ``OFF`` is used.
  9. If you have options that depend on the values of other options, see
  10. the module help for :module:`CMakeDependentOption`.