diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-07-05 21:52:53 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-07-05 21:52:53 +0800 |
commit | d44065eb6d90af47401e9d0b76ad560edbb4927b (patch) | |
tree | 651e5fe0e3727c0ba00a7b7c744c033e9ff9e0c2 /indra/llwebrtc | |
parent | 4b188e3db3800b96688be928e4020e87a1bb9aca (diff) |
`make install` on macOS installs libllwebrtc.dylib
For now it's to the Resources folder, while 3rd-party libraries
have moved to the Frameworks folder, so let's see.
Diffstat (limited to 'indra/llwebrtc')
-rw-r--r-- | indra/llwebrtc/CMakeLists.txt | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/indra/llwebrtc/CMakeLists.txt b/indra/llwebrtc/CMakeLists.txt index fb670322ff..b7adc91c2a 100644 --- a/indra/llwebrtc/CMakeLists.txt +++ b/indra/llwebrtc/CMakeLists.txt @@ -61,12 +61,14 @@ if (LL_TESTS) endif (LL_TESTS) 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) + 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) |