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