TYPE.rst 696 B

123456789101112131415161718192021
  1. TYPE
  2. ----
  3. Widget type for entry in GUIs.
  4. Cache entry values are always strings, but CMake GUIs present widgets
  5. to help users set values. The GUIs use this property as a hint to
  6. determine the widget type. Valid ``TYPE`` values are:
  7. ::
  8. BOOL = Boolean ON/OFF value.
  9. PATH = Path to a directory.
  10. FILEPATH = Path to a file.
  11. STRING = Generic string value.
  12. INTERNAL = Do not present in GUI at all.
  13. STATIC = Value managed by CMake, do not change.
  14. UNINITIALIZED = Type not yet specified.
  15. Generally the ``TYPE`` of a cache entry should be set by the command which
  16. creates it ( :command:`set`, :command:`option`, :command:`find_library`, etc.).