Commit 8f37a3a3 authored by Alexander Alekhin's avatar Alexander Alekhin

cmake: make ocv_cmake_dump_vars() case insensitive

parent 9cd67318
......@@ -2,12 +2,14 @@ include(CMakeParseArguments)
# Debugging function
function(ocv_cmake_dump_vars)
set(VARS "")
get_cmake_property(_variableNames VARIABLES)
cmake_parse_arguments(DUMP "" "TOFILE" "" ${ARGN})
set(regex "${DUMP_UNPARSED_ARGUMENTS}")
get_cmake_property(_variableNames VARIABLES)
set(VARS "")
string(TOLOWER "${regex}" regex_lower)
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")
endif()
endforeach()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment