[cmake] fix cubeb bbbbbb and libusb
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
7588de09a2
commit
651deea683
4 changed files with 12 additions and 2 deletions
2
externals/CMakeLists.txt
vendored
2
externals/CMakeLists.txt
vendored
|
@ -13,8 +13,6 @@ set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
|
||||||
|
|
||||||
# Disable tests/tools in all externals supporting the standard option name
|
# Disable tests/tools in all externals supporting the standard option name
|
||||||
set(BUILD_TESTING OFF)
|
set(BUILD_TESTING OFF)
|
||||||
set(BUILD_TESTS OFF)
|
|
||||||
set(BUILD_TOOLS OFF)
|
|
||||||
|
|
||||||
# Build only static externals
|
# Build only static externals
|
||||||
set(BUILD_SHARED_LIBS OFF)
|
set(BUILD_SHARED_LIBS OFF)
|
||||||
|
|
6
externals/libusb/CMakeLists.txt
vendored
6
externals/libusb/CMakeLists.txt
vendored
|
@ -235,6 +235,12 @@ else() # MINGW OR (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(UNIX)
|
||||||
|
set(PLATFORM_POSIX TRUE)
|
||||||
|
else()
|
||||||
|
set(PLATFORM_WINDOWS TRUE)
|
||||||
|
endif()
|
||||||
|
|
||||||
include(CheckFunctionExists)
|
include(CheckFunctionExists)
|
||||||
include(CheckIncludeFiles)
|
include(CheckIncludeFiles)
|
||||||
include(CheckTypeSize)
|
include(CheckTypeSize)
|
||||||
|
|
4
externals/libusb/config.h.in
vendored
4
externals/libusb/config.h.in
vendored
|
@ -93,3 +93,7 @@
|
||||||
|
|
||||||
/* Oldest Windows version supported */
|
/* Oldest Windows version supported */
|
||||||
#define WINVER 0x0501
|
#define WINVER 0x0501
|
||||||
|
|
||||||
|
#cmakedefine PLATFORM_POSIX
|
||||||
|
|
||||||
|
#cmakedefine PLATFORM_WINDOWS
|
||||||
|
|
|
@ -10,6 +10,8 @@ CPMAddPackage(
|
||||||
FIND_PACKAGE_ARGUMENTS "CONFIG" # not sure this works outside of gentoo
|
FIND_PACKAGE_ARGUMENTS "CONFIG" # not sure this works outside of gentoo
|
||||||
OPTIONS
|
OPTIONS
|
||||||
"USE_SANITIZERS OFF"
|
"USE_SANITIZERS OFF"
|
||||||
|
"BUILD_TESTS OFF"
|
||||||
|
"BUILD_TOOLS OFF"
|
||||||
)
|
)
|
||||||
|
|
||||||
if (cubeb_ADDED)
|
if (cubeb_ADDED)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue