Return a list from the function using OUT parameter

前端 未结 3 1434
星月不相逢
星月不相逢 2020-11-29 11:16

I would like to create a CMake function as:

function(test src_list dst_list)
# do something
endfunction()

usage:

test(${my_lis         


        
3条回答
  •  天命终不由人
    2020-11-29 11:49

    Check that inside your function you are set()ing not dst_list but ${dst_list}. You need this to return data to the parent scope.

提交回复
热议问题