Merge pull request #10705 from Zopolis4/cmake
Fixes for cmake shared library detection.
This commit is contained in:
commit
08f78b1445
|
@ -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