cmake: Fix FindPkgConfig

This commit is contained in:
Alexandre Bouvier 2022-09-20 22:21:52 +02:00
parent 8d4458ef24
commit 09a87966e0
3 changed files with 5 additions and 5 deletions

View file

@ -108,7 +108,7 @@ if (MINGW OR (${CMAKE_SYSTEM_NAME} MATCHES "Linux") OR APPLE)
target_include_directories(usb INTERFACE "${LIBUSB_INCLUDE_DIRS}")
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
Include(FindPkgConfig)
find_package(PkgConfig)
pkg_check_modules(LIBUDEV REQUIRED libudev)
if (LIBUDEV_FOUND)