cmake/sdlchecks.cmake
changeset 12971 2fbd3d8432ab
parent 12932 800524378309
child 12974 0fef4b21fa1d
     1.1 --- a/cmake/sdlchecks.cmake	Wed Jul 31 19:40:50 2019 +0300
     1.2 +++ b/cmake/sdlchecks.cmake	Wed Jul 31 11:34:00 2019 -0500
     1.3 @@ -1074,7 +1074,7 @@
     1.4        set(HAVE_HIDAPI FALSE)
     1.5        pkg_check_modules(LIBUSB libusb)
     1.6        if (LIBUSB_FOUND)
     1.7 -        check_include_file(libusb.h HAVE_LIBUSB_H)
     1.8 +        check_include_file(libusb.h HAVE_LIBUSB_H ${LIBUSB_CFLAGS})
     1.9          if (HAVE_LIBUSB_H)
    1.10            set(HAVE_HIDAPI TRUE)
    1.11          endif()