Skip to content

Commit

Permalink
Fixed compilation error on windows
Browse files Browse the repository at this point in the history
Extraction of downloaded libusb archive failed due to wrong command 
option formatting since commit a8c1f41.
  • Loading branch information
Nightwalker-87 committed Apr 20, 2020
1 parent 629314c commit 7640daa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/modules/Find_libusb.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ elseif (WIN32) # Windows

if (NOT LIBUSB_FOUND OR EXISTS "/etc/debian_version")
# Preparations for installing libusb library
find_package(_7zip REQUIRED)
find_package(7zip REQUIRED)
set(LIBUSB_WIN_VERSION 1.0.23) # set libusb version
set(LIBUSB_WIN_ARCHIVE libusb-${LIBUSB_WIN_VERSION}.7z)
set(LIBUSB_WIN_ARCHIVE_PATH ${CMAKE_BINARY_DIR}/${LIBUSB_WIN_ARCHIVE})
Expand All @@ -100,8 +100,8 @@ elseif (WIN32) # Windows
)
else ()
execute_process(
COMMAND ${ZIP_EXECUTABLE} x -y ${LIBUSB_WIN_ARCHIVE_PATH} -o ${LIBUSB_WIN_OUTPUT_FOLDER}
)
COMMAND ${ZIP_EXECUTABLE} x -y ${LIBUSB_WIN_ARCHIVE_PATH} -o${LIBUSB_WIN_OUTPUT_FOLDER}
) # <-- Note the absence of a space character following the -o option!
endif ()

# Find path to libusb library
Expand Down

0 comments on commit 7640daa

Please sign in to comment.