function.cmake 184 B

1234567
  1. function(my_func arg1 arg2)
  2. message("arg1: ${arg1}, arg2: ${arg2}")
  3. set(RESULT "${arg1}_${arg2}" PARENT_SCOPE)
  4. endfunction()
  5. my_func("hello" "world")
  6. message("Result: ${RESULT}")