From: Viktor Szakats Date: Sun, 1 Jan 2023 00:11:51 +0000 (+0100) Subject: cmake: tidy up local variable names X-Git-Tag: curl-8_12_0~258 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ef07663bc453d9220137ad102fc8eb589ac87379;p=thirdparty%2Fcurl.git cmake: tidy up local variable names Closes #15843 --- diff --git a/CMake/Utilities.cmake b/CMake/Utilities.cmake index 59e17fd507..869d5915b7 100644 --- a/CMake/Utilities.cmake +++ b/CMake/Utilities.cmake @@ -23,15 +23,15 @@ ########################################################################### # File containing various utilities -# Returns number of arguments that evaluate to true +# Return number of arguments that evaluate to true function(curl_count_true _output_count_var) - set(lst_len 0) - foreach(option_var IN LISTS ARGN) - if(${option_var}) - math(EXPR lst_len "${lst_len} + 1") + set(_list_len 0) + foreach(_option_var IN LISTS ARGN) + if(${_option_var}) + math(EXPR _list_len "${_list_len} + 1") endif() endforeach() - set(${_output_count_var} ${lst_len} PARENT_SCOPE) + set(${_output_count_var} ${_list_len} PARENT_SCOPE) endfunction() # Dump all defined variables with their values