TYPE¶
GUI 中输入的部件类型。
缓存输入的值总是字符串,但 CMake GUI 会显示部件来帮助用户设置值。GUI 将使用此属性作为提示来确定部件类型。有效的 TYPE
值是
BOOL = Boolean ON/OFF value.
PATH = Path to a directory.
FILEPATH = Path to a file.
STRING = Generic string value.
INTERNAL = Do not present in GUI at all.
STATIC = Value managed by CMake, do not change.
UNINITIALIZED = Type not yet specified.
一般来说,缓存输入的 TYPE
应由创建它的命令来设置(set()
,option()
,find_library()
,等)。