cmake: Fix target_add_resource ARGN support on Linux

This fixes how the AUTHORS file is installed.
This commit is contained in:
tytan652 2024-10-24 11:44:48 +02:00 • committed by Ryan Foster
commit 2e075f7513

View file

@ -271,7 +271,7 @@ endfunction()
# Helper function to add a specific resource to a bundle
function(target_add_resource target resource)
get_property(obs_module_list GLOBAL PROPERTY OBS_MODULES_ENABLED)
if(${ARGN})
if(ARGN)
set(target_destination "${ARGN}")
elseif(${target} IN_LIST obs_module_list)
set(target_destination "${OBS_DATA_DESTINATION}/obs-plugins/${target}")