Lines Matching full:varname
46 macro (gflags_is_cached retvar varname)
47 if (DEFINED ${varname})
48 get_property (${retvar} CACHE ${varname} PROPERTY TYPE SET)
58 # on the CMake command-line or the super-project by setting the GFLAGS_<varname>
61 macro (gflags_define type varname docstring default)
67 if (NOT DEFINED GFLAGS_${varname})
69 set (GFLAGS_${varname} "${ARGV4}")
71 set (GFLAGS_${varname} "${default}")
75 if (NOT DEFINED ${varname})
76 set (${varname} "${GFLAGS_${varname}}")
79 set (${varname} "${GFLAGS_${varname}}" CACHE ${type} "${docstring}")
85 macro (gflags_property varname property value)
86 gflags_is_cached (_cached ${varname})
92 mark_as_advanced (FORCE ${varname})
94 mark_as_advanced (CLEAR ${varname})
97 set_property (CACHE ${varname} PROPERTY "${property}" "${value}")
105 macro (gflags_set varname value)
106 gflags_is_cached (_cached ${varname})
108 set_property (CACHE ${varname} PROPERTY VALUE "${value}")
110 set (${varname} "${value}")