option.rst 375 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 initial
  8. 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 CMakeDependentOption.