From ce6d9e2e2849e2a751e8cbc50d2a59f691b8fc54 Mon Sep 17 00:00:00 2001
From: darkf <lw9k123@gmail.com>
Date: Fri, 25 May 2018 02:05:38 -0500
Subject: [PATCH] externals: Don't build cubeb with tests

---
 externals/CMakeLists.txt      | 1 +
 src/audio_core/CMakeLists.txt | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index 8687da427..cb7530f2d 100644
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -80,5 +80,6 @@ endif()
 
 # Cubeb
 if(ENABLE_CUBEB)
+    set(BUILD_TESTS OFF CACHE BOOL "")
     add_subdirectory(cubeb)
 endif()
diff --git a/src/audio_core/CMakeLists.txt b/src/audio_core/CMakeLists.txt
index 9f704c751..de6079edc 100644
--- a/src/audio_core/CMakeLists.txt
+++ b/src/audio_core/CMakeLists.txt
@@ -40,4 +40,5 @@ endif()
 if(ENABLE_CUBEB)
     target_link_libraries(audio_core PRIVATE cubeb)
     add_definitions(-DHAVE_CUBEB=1)
-endif()
\ No newline at end of file
+endif()
+