From 7640daae4c0ade48a4179b3a7750272471b8c8e5 Mon Sep 17 00:00:00 2001 From: nightwalker-87 <15526941+Nightwalker-87@users.noreply.github.com> Date: Mon, 20 Apr 2020 18:34:12 +0200 Subject: [PATCH] Fixed compilation error on windows Extraction of downloaded libusb archive failed due to wrong command option formatting since commit a8c1f41f1b1c9dd1314f99a1d42de1008f5a4f74. --- cmake/modules/Find_libusb.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/modules/Find_libusb.cmake b/cmake/modules/Find_libusb.cmake index a44e02236..8da0090d8 100644 --- a/cmake/modules/Find_libusb.cmake +++ b/cmake/modules/Find_libusb.cmake @@ -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}) @@ -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