parent
aed02db247
commit
ef07663bc4
@ -23,15 +23,15 @@
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
# File containing various utilities
|
# 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)
|
function(curl_count_true _output_count_var)
|
||||||
set(lst_len 0)
|
set(_list_len 0)
|
||||||
foreach(option_var IN LISTS ARGN)
|
foreach(_option_var IN LISTS ARGN)
|
||||||
if(${option_var})
|
if(${_option_var})
|
||||||
math(EXPR lst_len "${lst_len} + 1")
|
math(EXPR _list_len "${_list_len} + 1")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
set(${_output_count_var} ${lst_len} PARENT_SCOPE)
|
set(${_output_count_var} ${_list_len} PARENT_SCOPE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
# Dump all defined variables with their values
|
# Dump all defined variables with their values
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user