cmake: lowercase all macros
parent
289b024715
commit
39a7abad7a
|
@ -1,4 +1,4 @@
|
|||
macro(ADD_TO_ALLOPTIONS _NEWNAME)
|
||||
macro(add_to_alloptions _NEWNAME)
|
||||
list(APPEND ALLOPTIONS ${_NEWNAME})
|
||||
string(LENGTH ${_NEWNAME} _SLEN)
|
||||
if(${LONGESTOPTIONNAME} LESS ${_SLEN})
|
||||
|
@ -6,7 +6,7 @@ macro(ADD_TO_ALLOPTIONS _NEWNAME)
|
|||
endif()
|
||||
endmacro()
|
||||
|
||||
macro(SET_OPTION _NAME _DESC)
|
||||
macro(set_option _NAME _DESC)
|
||||
add_to_alloptions(${_NAME})
|
||||
if(${ARGC} EQUAL 3)
|
||||
set(_DEFLT ${ARGV2})
|
||||
|
@ -16,27 +16,27 @@ macro(SET_OPTION _NAME _DESC)
|
|||
option(${_NAME} ${_DESC} ${_DEFLT})
|
||||
endmacro()
|
||||
|
||||
macro(DEP_OPTION _NAME _DESC _DEFLT _DEPTEST _FAILDFLT)
|
||||
macro(dep_option _NAME _DESC _DEFLT _DEPTEST _FAILDFLT)
|
||||
add_to_alloptions("${_NAME}")
|
||||
cmake_dependent_option("${_NAME}" "${_DESC}" "${_DEFLT}" "${_DEPTEST}" "${_FAILDFLT}")
|
||||
endmacro()
|
||||
|
||||
macro(OPTION_STRING _NAME _DESC _VALUE)
|
||||
macro(option_string _NAME _DESC _VALUE)
|
||||
add_to_alloptions(${_NAME})
|
||||
set(${_NAME} ${_VALUE} CACHE STRING "${_DESC}")
|
||||
set(HAVE_${_NAME} ${_VALUE})
|
||||
ENDMACRO()
|
||||
|
||||
# Message Output
|
||||
macro(MESSAGE_WARN _TEXT)
|
||||
macro(message_warn _TEXT)
|
||||
message(WARNING "${_TEXT}")
|
||||
endmacro()
|
||||
|
||||
macro(MESSAGE_ERROR _TEXT)
|
||||
macro(message_error _TEXT)
|
||||
message(FATAL_ERROR "*** ERROR: ${_TEXT}")
|
||||
endmacro()
|
||||
|
||||
macro(MESSAGE_BOOL_OPTION _NAME _VALUE)
|
||||
macro(message_bool_option _NAME _VALUE)
|
||||
set(_PAD "\t")
|
||||
if(${ARGC} EQUAL 3)
|
||||
set(_PAD ${ARGV2})
|
||||
|
@ -48,7 +48,7 @@ macro(MESSAGE_BOOL_OPTION _NAME _VALUE)
|
|||
endif()
|
||||
endmacro()
|
||||
|
||||
macro(MESSAGE_TESTED_OPTION _NAME)
|
||||
macro(message_tested_option _NAME)
|
||||
set(_REQVALUE ${${_NAME}})
|
||||
set(_PAD " ")
|
||||
if(${ARGC} EQUAL 2)
|
||||
|
@ -68,7 +68,7 @@ macro(MESSAGE_TESTED_OPTION _NAME)
|
|||
message(STATUS " ${_NAME}${_PAD}(Wanted: ${_REQVALUE}): ${HAVE_${_STRIPPEDNAME}}")
|
||||
endmacro()
|
||||
|
||||
macro(LISTTOSTR _LIST _OUTPUT)
|
||||
macro(listtostr _LIST _OUTPUT)
|
||||
if(${ARGC} EQUAL 3)
|
||||
# prefix for each element
|
||||
set(_LPREFIX ${ARGV2})
|
||||
|
@ -82,7 +82,7 @@ macro(LISTTOSTR _LIST _OUTPUT)
|
|||
endforeach()
|
||||
endmacro()
|
||||
|
||||
function(LISTTOSTRREV _LIST _OUTPUT)
|
||||
function(listtostrrev _LIST _OUTPUT)
|
||||
if(${ARGC} EQUAL 3)
|
||||
# prefix for each element
|
||||
set(_LPREFIX ${ARGV2})
|
||||
|
|
Loading…
Reference in New Issue