File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -2,21 +2,22 @@ include(CMakeParseArguments)
2
2
3
3
# Debugging function
4
4
function (ocv_cmake_dump_vars )
5
- set (VARS "" )
6
- get_cmake_property (_variableNames VARIABLES )
5
+ get_cmake_property (__variableNames VARIABLES )
7
6
cmake_parse_arguments (DUMP "" "TOFILE" "" ${ARGN} )
8
7
set (regex "${DUMP_UNPARSED_ARGUMENTS} " )
9
8
string (TOLOWER "${regex} " regex_lower )
10
- foreach (_variableName ${_variableNames} )
11
- string (TOLOWER "${_variableName} " _variableName_lower )
12
- if (_variableName MATCHES "${regex} " OR _variableName_lower MATCHES "${regex_lower} " )
13
- set (VARS "${VARS}${_variableName} =${${_variableName} }\n " )
9
+ set (__VARS "" )
10
+ foreach (__variableName ${__variableNames} )
11
+ string (TOLOWER "${__variableName} " __variableName_lower )
12
+ if ((__variableName MATCHES "${regex} " OR __variableName_lower MATCHES "${regex_lower} " )
13
+ AND NOT __variableName_lower MATCHES "^__" )
14
+ set (__VARS "${__VARS}${__variableName} =${${__variableName} }\n " )
14
15
endif ()
15
16
endforeach ()
16
17
if (DUMP_TOFILE )
17
- file (WRITE ${CMAKE_BINARY_DIR} /${DUMP_TOFILE} "${VARS } " )
18
+ file (WRITE ${CMAKE_BINARY_DIR} /${DUMP_TOFILE} "${__VARS } " )
18
19
else ()
19
- message (AUTHOR_WARNING "${VARS } " )
20
+ message (AUTHOR_WARNING "${__VARS } " )
20
21
endif ()
21
22
endfunction ()
22
23
You can’t perform that action at this time.
0 commit comments