aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake/Modules/FindLIBUSB.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'host/cmake/Modules/FindLIBUSB.cmake')
-rw-r--r--host/cmake/Modules/FindLIBUSB.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/cmake/Modules/FindLIBUSB.cmake b/host/cmake/Modules/FindLIBUSB.cmake
index 9c404f68e..f574df916 100644
--- a/host/cmake/Modules/FindLIBUSB.cmake
+++ b/host/cmake/Modules/FindLIBUSB.cmake
@@ -57,6 +57,9 @@ if(HAVE_LIBUSB_STRERROR)
list(APPEND LIBUSB_DEFINITIONS "HAVE_LIBUSB_STRERROR=1")
endif(HAVE_LIBUSB_STRERROR)
+unset(CMAKE_REQUIRED_INCLUDES)
+unset(CMAKE_REQUIRED_LIBRARIES)
+
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LIBUSB DEFAULT_MSG LIBUSB_LIBRARIES LIBUSB_INCLUDE_DIRS)
mark_as_advanced(LIBUSB_INCLUDE_DIRS LIBUSB_LIBRARIES)