mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-08-07 10:20:46 +00:00
build(homebrew): dynamic link opus (#4826)
This commit is contained in:
@@ -33,7 +33,12 @@ include_directories(SYSTEM ${MINIUPNP_INCLUDE_DIRS})
|
||||
include("${CMAKE_MODULE_PATH}/dependencies/ffmpeg.cmake")
|
||||
|
||||
# Opus
|
||||
set(OPUS_USE_STATIC ON CACHE BOOL "Static linking for libopus")
|
||||
# Homebrew provides opus as a dynamic library only, so disable static linking for Homebrew builds
|
||||
if(SUNSHINE_BUILD_HOMEBREW)
|
||||
set(OPUS_USE_STATIC OFF CACHE BOOL "Static linking for libopus")
|
||||
else()
|
||||
set(OPUS_USE_STATIC ON CACHE BOOL "Static linking for libopus")
|
||||
endif()
|
||||
include("${CMAKE_MODULE_PATH}/dependencies/FindOpus.cmake")
|
||||
|
||||
# platform specific dependencies
|
||||
|
||||
Reference in New Issue
Block a user