diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-06-30 19:06:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-30 19:06:04 +0200 |
| commit | fa81006b519cdfff61a4686df8cdef901cf6685d (patch) | |
| tree | 3389d331067ce7f8ae0389e11b5152636dd952ec /Source/Core/InputCommon | |
| parent | e4d7ba5554e4d0eae1e803679318c7d2551d9c5f (diff) | |
| parent | ade40650f5cbd2e950e382ab0a21598ab34aa65c (diff) | |
Merge pull request #11955 from TellowKrinkle/CMakeDependencies
CMake: Allow ignoring system packages
Diffstat (limited to 'Source/Core/InputCommon')
| -rw-r--r-- | Source/Core/InputCommon/CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/CMakeLists.txt b/Source/Core/InputCommon/CMakeLists.txt index 0343717a34..ed19e12b74 100644 --- a/Source/Core/InputCommon/CMakeLists.txt +++ b/Source/Core/InputCommon/CMakeLists.txt @@ -81,7 +81,8 @@ PUBLIC PRIVATE fmt::fmt - ${spng_target} + sfml-network + spng::spng ) if(WIN32) @@ -146,7 +147,7 @@ elseif(ANDROID) endif() if(NOT ANDROID) - target_link_libraries(inputcommon PUBLIC ${LIBUSB_LIBRARIES}) + target_link_libraries(inputcommon PUBLIC LibUSB::LibUSB) endif() if(LIBEVDEV_FOUND AND LIBUDEV_FOUND) @@ -174,12 +175,13 @@ if(UNIX) ) endif() -if(SDL2_FOUND) +if(ENABLE_SDL) target_sources(inputcommon PRIVATE ControllerInterface/SDL/SDL.cpp ControllerInterface/SDL/SDL.h ) target_link_libraries(inputcommon PRIVATE SDL2::SDL2) + target_compile_definitions(inputcommon PUBLIC HAVE_SDL2=1) endif() if(MSVC) |
