[cmake] fix cubeb bbbbbb and libusb

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2025-07-28 02:35:24 -04:00
parent 7588de09a2
commit 651deea683
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6
4 changed files with 12 additions and 2 deletions

View file

@ -13,8 +13,6 @@ set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
# Disable tests/tools in all externals supporting the standard option name
set(BUILD_TESTING OFF)
set(BUILD_TESTS OFF)
set(BUILD_TOOLS OFF)
# Build only static externals
set(BUILD_SHARED_LIBS OFF)

View file

@ -235,6 +235,12 @@ else() # MINGW OR (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
)
endif()
if(UNIX)
set(PLATFORM_POSIX TRUE)
else()
set(PLATFORM_WINDOWS TRUE)
endif()
include(CheckFunctionExists)
include(CheckIncludeFiles)
include(CheckTypeSize)

View file

@ -93,3 +93,7 @@
/* Oldest Windows version supported */
#define WINVER 0x0501
#cmakedefine PLATFORM_POSIX
#cmakedefine PLATFORM_WINDOWS

View file

@ -10,6 +10,8 @@ CPMAddPackage(
FIND_PACKAGE_ARGUMENTS "CONFIG" # not sure this works outside of gentoo
OPTIONS
"USE_SANITIZERS OFF"
"BUILD_TESTS OFF"
"BUILD_TOOLS OFF"
)
if (cubeb_ADDED)