mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
Fix cmake detection of libudev in hidapi broken in #9071
This commit is contained in:
parent
70bf89fa59
commit
b31754980c
2
Externals/hidapi/CMakeLists.txt
vendored
2
Externals/hidapi/CMakeLists.txt
vendored
@ -9,7 +9,7 @@ if(APPLE)
|
|||||||
elseif(MSVC)
|
elseif(MSVC)
|
||||||
target_sources(hidapi PRIVATE windows/hid.c)
|
target_sources(hidapi PRIVATE windows/hid.c)
|
||||||
else()
|
else()
|
||||||
find_package(Libudev)
|
find_package(LIBUDEV)
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND LIBUDEV_FOUND)
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND LIBUDEV_FOUND)
|
||||||
target_sources(hidapi PRIVATE linux/hid.c)
|
target_sources(hidapi PRIVATE linux/hid.c)
|
||||||
target_link_libraries(hidapi PRIVATE udev)
|
target_link_libraries(hidapi PRIVATE udev)
|
||||||
|
Loading…
Reference in New Issue
Block a user