You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
352 B
14 lines
352 B
# File containing various utilities
|
|
|
|
# Returns a list of arguments that evaluate to true
|
|
function(count_true output_count_var)
|
|
set(lst)
|
|
foreach(option_var IN LISTS ARGN)
|
|
if(${option_var})
|
|
list(APPEND lst ${option_var})
|
|
endif()
|
|
endforeach()
|
|
list(LENGTH lst lst_len)
|
|
set(${output_count_var} ${lst_len} PARENT_SCOPE)
|
|
endfunction()
|