1# File containing various utilities
2
3# Returns a list of arguments that evaluate to true
4function(count_true output_count_var)
5  set(lst)
6  foreach(option_var IN LISTS ARGN)
7    if(${option_var})
8      list(APPEND lst ${option_var})
9    endif()
10  endforeach()
11  list(LENGTH lst lst_len)
12  set(${output_count_var} ${lst_len} PARENT_SCOPE)
13endfunction()
14