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:

BOOL

Boolean ON/OFF value.

PATH

目錄的路徑。

FILEPATH

檔案的路徑。

STRING

Generic string value.

INTERNAL

完全不顯示在 GUI 中。

STATIC

Value managed by CMake, do not change.

UNINITIALIZED

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.).