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 15:08:37 -04:00
committed by Ryan Foster
parent 3ee7655fe4
commit 2e075f7513
+1 -1
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}")