cmake: Fixes plugins not being copied into application bundle on macOS

Makes the check for the number of plugins in the global list an explicit
length check (not relying on CMake implicit functionality), also moves
it in line with how the same was solved in `ObsHelpers.cmake` globally.
master
PatTheMav 2022-04-05 11:11:14 +02:00
parent 7f990677c0
commit 9c6897324a
No known key found for this signature in database
GPG Key ID: CEFD5D83C12A66B3
1 changed files with 4 additions and 2 deletions

View File

@ -265,7 +265,8 @@ endfunction()
function(setup_obs_modules target)
get_property(OBS_MODULE_LIST GLOBAL PROPERTY OBS_MODULE_LIST)
if("${OBS_MODULE_LIST}")
list(LENGTH OBS_MODULE_LIST _LEN)
if(_LEN GREATER 0)
add_dependencies(${target} ${OBS_MODULE_LIST})
install(
@ -284,7 +285,8 @@ function(setup_obs_modules target)
get_property(OBS_SCRIPTING_MODULE_LIST GLOBAL
PROPERTY OBS_SCRIPTING_MODULE_LIST)
if("${OBS_SCRIPTING_MODULE_LIST}")
list(LENGTH OBS_SCRIPTING_MODULE_LIST _LEN)
if(_LEN GREATER 0)
add_dependencies(${target} ${OBS_SCRIPTING_MODULE_LIST})
install(