cmake: make ocv_cmake_dump_vars() case insensitive
This commit is contained in:
parent
9cd6731894
commit
8f37a3a37c
@ -2,12 +2,14 @@ include(CMakeParseArguments)
|
|||||||
|
|
||||||
# Debugging function
|
# Debugging function
|
||||||
function(ocv_cmake_dump_vars)
|
function(ocv_cmake_dump_vars)
|
||||||
|
set(VARS "")
|
||||||
|
get_cmake_property(_variableNames VARIABLES)
|
||||||
cmake_parse_arguments(DUMP "" "TOFILE" "" ${ARGN})
|
cmake_parse_arguments(DUMP "" "TOFILE" "" ${ARGN})
|
||||||
set(regex "${DUMP_UNPARSED_ARGUMENTS}")
|
set(regex "${DUMP_UNPARSED_ARGUMENTS}")
|
||||||
get_cmake_property(_variableNames VARIABLES)
|
string(TOLOWER "${regex}" regex_lower)
|
||||||
set(VARS "")
|
|
||||||
foreach(_variableName ${_variableNames})
|
foreach(_variableName ${_variableNames})
|
||||||
if(_variableName MATCHES "${regex}")
|
string(TOLOWER "${_variableName}" _variableName_lower)
|
||||||
|
if(_variableName MATCHES "${regex}" OR _variableName_lower MATCHES "${regex_lower}")
|
||||||
set(VARS "${VARS}${_variableName}=${${_variableName}}\n")
|
set(VARS "${VARS}${_variableName}=${${_variableName}}\n")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user