TYPE
Widget type for entry in GUIs.
Cache entry values are always strings, but CMake GUIs present widgets to help users set values. The GUIs use this property as a hint to determine the widget type. Valid TYPE values are:
| Boolean ON/OFF value. |
| Path to a directory. |
| Path to a file. |
| Generic string value. |
| Do not present in GUI at all. |
| Value managed by CMake, do not change. |
| Type not yet specified. |
Generally the TYPE of a cache entry should be set by the command which creates it (set(), option(), find_library(), etc.).
© 2000–2026 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/prop_cache/TYPE.html