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")
|
include("${CMAKE_MODULE_PATH}/dependencies/ffmpeg.cmake")
|
||||||
|
|
||||||
# Opus
|
# 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")
|
include("${CMAKE_MODULE_PATH}/dependencies/FindOpus.cmake")
|
||||||
|
|
||||||
# platform specific dependencies
|
# platform specific dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user