CPack/CPackComponent should use global properties rather than variables
Let's say you have something like the following:
include(CPackComponent)
function(do_stuff)
cpack_add_component(development
# ...
)
endfunction()
do_stuff()
include(CPack)
Because cpack_add_component()
sets variables, they will not be pushed up to the parent scope. This prohibits using cpack_add_component()
inside a function()
scope.