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()
+