Bring OPTION() back
This commit is contained in:
parent
7b271a3659
commit
48752abaec
@ -1,4 +1,4 @@
|
||||
SET(MOO_DEV_MODE_CMAKE OFF CACHE BOOL "Enable developer mode for cmake - bunch of checks, warnings, etc.")
|
||||
OPTION(MOO_DEV_MODE_CMAKE "Enable developer mode for cmake - bunch of checks, warnings, etc." OFF)
|
||||
MARK_AS_ADVANCED(MOO_DEV_MODE_CMAKE)
|
||||
|
||||
IF(MOO_DEV_MODE_CMAKE)
|
||||
@ -385,10 +385,12 @@ MACRO(MOO_OPTION variable dfltval helpstring)
|
||||
SET(_moo_option_header)
|
||||
SET(_moo_option_define)
|
||||
MOO_COLLECT_SIMPLE_ARGS(HIDDEN _moo_option_hidden HEADER _moo_option_header DEFINE _moo_option_define ARGN ${ARGN})
|
||||
SET(${variable} "${dfltval}" CACHE BOOL "${helpstring}")
|
||||
IF(_moo_option_hidden)
|
||||
IF(NOT _moo_option_hidden)
|
||||
OPTION(${variable} "${helpstring}" "${dfltval}")
|
||||
ELSE(NOT _moo_option_hidden)
|
||||
SET(${variable} "${dfltval}" CACHE BOOL "${helpstring}")
|
||||
MARK_AS_ADVANCED(${variable})
|
||||
ENDIF(_moo_option_hidden)
|
||||
ENDIF(NOT _moo_option_hidden)
|
||||
IF(_moo_option_header)
|
||||
# MOO_DEBUG(${variable})
|
||||
MOO_DEFINE_H(${variable} "${helpstring}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user