[cmake] refactor: Use CPM over submodules #143

Merged
crueter merged 42 commits from refactor/cpm into master 2025-08-04 04:50:17 +02:00
Showing only changes of commit 80d3802db6 - Show all commits

View file

@ -6,12 +6,14 @@ set(CPM_USE_LOCAL_PACKAGES ON)
CPMAddPackage(
URI "gh:mozilla/cubeb#fa02160712"
FIND_PACKAGE_ARGUMENTS "CONFIG" # not sure this works outside of gentoo
DOWNLOAD_ONLY YES
)
if (cubeb_ADDED)
set(BUILD_TESTS OFF)
set(BUILD_TOOLS OFF)
add_subdirectory(${cubeb_SOURCE_DIR} ${cubeb_BINARY_DIR})
if (NOT MSVC)
if (TARGET speex)
target_compile_options(speex PRIVATE -Wno-sign-compare)