File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,11 @@ else (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES)
59
59
include (FindPackageHandleStandardArgs)
60
60
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBUSB DEFAULT_MSG LIBUSB_LIBRARIES LIBUSB_INCLUDE_DIR)
61
61
62
- # Don't use .dll.a libraries, as they require the .dll file to be in the correct location
63
- # Replace with .a for static linking instead
64
- string (REPLACE ".dll.a" ".a" LIBUSB_LIBRARIES ${LIBUSB_LIBRARIES} )
62
+ if (NOT PICOTOOL_LIBUSB_ALLOW_DLL)
63
+ # Don't use .dll.a libraries, as they require the .dll file to be in the correct location
64
+ # Replace with .a for static linking instead
65
+ string (REPLACE ".dll.a" ".a" LIBUSB_LIBRARIES ${LIBUSB_LIBRARIES} )
66
+ endif ()
65
67
66
68
MARK_AS_ADVANCED (LIBUSB_INCLUDE_DIR LIBUSB_LIBRARIES)
67
69
endif (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES)
You can’t perform that action at this time.
0 commit comments