File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,14 @@ add_subdirectory(stblib)
131131add_subdirectory (discord-rpc)
132132
133133# Cubeb
134- add_subdirectory (cubeb EXCLUDE_FROM_ALL )
134+ if (USE_SYSTEM_CUBEB)
135+ find_package (cubeb REQUIRED GLOBAL )
136+ message (STATUS "Using system cubeb version '${cubeb_VERSION} '" )
137+ add_library (3rdparty::cubeb ALIAS cubeb::cubeb)
138+ else ()
139+ message (STATUS "Using static cubeb from 3rdparty" )
140+ add_subdirectory (cubeb EXCLUDE_FROM_ALL )
141+ endif ()
135142
136143# SoundTouch
137144add_subdirectory (SoundTouch EXCLUDE_FROM_ALL )
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ option(USE_SYSTEM_FFMPEG "Prefer system ffmpeg instead of the prebuild one" OFF)
3131option (USE_SYSTEM_OPENAL "Prefer system OpenAL instead of the prebuild one" ON )
3232option (USE_SYSTEM_CURL "Prefer system Curl instead of the prebuild one" ON )
3333option (USE_SYSTEM_OPENCV "Prefer system OpenCV instead of the builtin one" ON )
34+ option (USE_SYSTEM_CUBEB "Prefer system cubeb instead of the builtin one" OFF )
3435option (HAS_MEMORY_BREAKPOINTS "Add support for memory breakpoints to the interpreter" OFF )
3536option (USE_LTO "Use LTO for building" ON )
3637option (BUILD_RPCS3_TESTS "Build RPCS3 unit tests." OFF )
You can’t perform that action at this time.
0 commit comments