BUILD: Refactor libusb submodule (#10169)

* relocate module files
* fix cmake errors
* moved & updated libusb MSVC build file
This commit is contained in:
polar
2021-04-29 16:50:18 +01:00
committed by GitHub
parent 5724d2d4c7
commit dece8a69f6
16 changed files with 154 additions and 154 deletions
+2 -2
View File
@@ -123,7 +123,7 @@ if(CMAKE_SYSTEM MATCHES "DragonFly|FreeBSD")
elseif(MSVC)
# Windows time.h defines timespec but doesn't add any flag for it, which makes libusb attempt to define it again
add_definitions(-DHAVE_STRUCT_TIMESPEC=1)
add_subdirectory(libusb_cmake EXCLUDE_FROM_ALL)
add_subdirectory(libusb EXCLUDE_FROM_ALL)
else()
if(USE_SYS_LIBUSB)
# we have the system libusb and have selected to use it
@@ -132,7 +132,7 @@ else()
else()
# we don't have the system libusb, so we compile from submodule
unset(LIBUSB_LIBRARIES CACHE)
add_subdirectory(libusb_cmake EXCLUDE_FROM_ALL)
add_subdirectory(libusb EXCLUDE_FROM_ALL)
endif()
endif()