Reduce indentation in ListToString
This commit is contained in:
parent
35ebac1cac
commit
93d6fb5d88
|
@ -1,6 +1,10 @@
|
||||||
if(NOT DEFINED LIST_TO_STRING_LOADED)
|
# prevent multiple inclusion
|
||||||
|
if(DEFINED LIST_TO_STRING_LOADED)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
set(LIST_TO_STRING_LOADED ON)
|
||||||
|
|
||||||
function(list_to_string separator prefix suffix input_list output_string_var)
|
function(list_to_string separator prefix suffix input_list output_string_var)
|
||||||
set(res "")
|
set(res "")
|
||||||
# get list length
|
# get list length
|
||||||
list(LENGTH input_list list_length)
|
list(LENGTH input_list list_length)
|
||||||
|
@ -23,7 +27,4 @@ if(NOT DEFINED LIST_TO_STRING_LOADED)
|
||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
set(${output_string_var} "${res}" PARENT_SCOPE)
|
set(${output_string_var} "${res}" PARENT_SCOPE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
set(LIST_TO_STRING_LOADED YES)
|
|
||||||
endif()
|
|
||||||
|
|
Loading…
Reference in New Issue