diff options
| author | Erik Kundiman <erik@megapahit.org> | 2024-07-05 08:58:07 +0800 | 
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2024-07-05 08:58:07 +0800 | 
| commit | 532ebcd2d1e722e73aa09a49e77ebaa79cc05e3e (patch) | |
| tree | 20db4483472c5e874c5d5419934274e8c8d1d13c /indra/media_plugins/libvlc | |
| parent | 8131a31bf4fefa7a8915508e3149cdf1dc47f384 (diff) | |
`make install` on macOS copies resources to bundle
Except for SLPlugin since there's already a custom command for it.
Diffstat (limited to 'indra/media_plugins/libvlc')
| -rw-r--r-- | indra/media_plugins/libvlc/CMakeLists.txt | 20 | 
1 files changed, 11 insertions, 9 deletions
| diff --git a/indra/media_plugins/libvlc/CMakeLists.txt b/indra/media_plugins/libvlc/CMakeLists.txt index d5d9a5d147..2c70db1141 100644 --- a/indra/media_plugins/libvlc/CMakeLists.txt +++ b/indra/media_plugins/libvlc/CMakeLists.txt @@ -57,12 +57,14 @@ if (DARWIN)  endif (DARWIN)  if (INSTALL) -	if (EXISTS ${CMAKE_SYSROOT}/usr/lib/${ARCH}-linux-gnu) -		set(_LIB lib/${ARCH}-linux-gnu) -	elseif (EXISTS /lib64) -		set(_LIB lib64) -	else () -		set(_LIB lib) -	endif () -	install(TARGETS ${PROJECT_NAME} DESTINATION ${_LIB}) -endif () +    if (DARWIN) +        set(_LIB ${viewer_BINARY_DIR}/${VIEWER_CHANNEL}.app/Contents/Resources/llplugin) +    elseif (EXISTS ${CMAKE_SYSROOT}/usr/lib/${ARCH}-linux-gnu) +        set(_LIB lib/${ARCH}-linux-gnu) +    elseif (EXISTS /lib64) +        set(_LIB lib64) +    else (DARWIN) +        set(_LIB lib) +    endif (DARWIN) +    install(TARGETS ${PROJECT_NAME} DESTINATION ${_LIB}) +endif (INSTALL) | 
