mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-29 11:18:56 -05:00
Fix path to libusb header file for BladeRF
This commit is contained in:
parent
36a6d088f8
commit
4839273dbd
5
external/CMakeLists.txt
vendored
5
external/CMakeLists.txt
vendored
@ -1362,6 +1362,9 @@ if (WIN32 OR APPLE)
|
|||||||
# needs pkgconfig, libusb, pthreads
|
# needs pkgconfig, libusb, pthreads
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(LIBBLADERF_LIBRARIES "${SDRANGEL_BINARY_LIB_DIR}/bladeRF.lib" CACHE INTERNAL "")
|
set(LIBBLADERF_LIBRARIES "${SDRANGEL_BINARY_LIB_DIR}/bladeRF.lib" CACHE INTERNAL "")
|
||||||
|
set(LIBBLADERF_LIBUSB_HEADER_FILE ${LIBUSB_INCLUDE_DIR}/libusb-1.0/libusb.h)
|
||||||
|
else ()
|
||||||
|
set(LIBBLADERF_LIBUSB_HEADER_FILE ${LIBUSB_INCLUDE_DIR}/libusb.h)
|
||||||
endif ()
|
endif ()
|
||||||
ExternalProject_Add(bladerf
|
ExternalProject_Add(bladerf
|
||||||
GIT_REPOSITORY https://github.com/Nuand/bladeRF.git
|
GIT_REPOSITORY https://github.com/Nuand/bladeRF.git
|
||||||
@ -1373,7 +1376,7 @@ if (WIN32 OR APPLE)
|
|||||||
-DPKG_CONFIG_EXECUTABLE=${PKG_CONFIG_EXECUTABLE}
|
-DPKG_CONFIG_EXECUTABLE=${PKG_CONFIG_EXECUTABLE}
|
||||||
-DENABLE_BACKEND_USB=ON
|
-DENABLE_BACKEND_USB=ON
|
||||||
-DENABLE_BACKEND_LIBUSB=ON
|
-DENABLE_BACKEND_LIBUSB=ON
|
||||||
-DLIBUSB_HEADER_FILE=${LIBUSB_INCLUDE_DIR}/libusb.h
|
-DLIBUSB_HEADER_FILE=${LIBBLADERF_LIBUSB_HEADER_FILE}
|
||||||
-Dusb_LIBRARY=${LIBUSB_LIBRARIES}
|
-Dusb_LIBRARY=${LIBUSB_LIBRARIES}
|
||||||
-DLIBUSB_PATH=${EXTERNAL_LIBRARY_FOLDER}/libusb
|
-DLIBUSB_PATH=${EXTERNAL_LIBRARY_FOLDER}/libusb
|
||||||
-DTHREADS_PTHREADS_INCLUDE_DIR=${PTHREADS4W_INCLUDE_DIR}
|
-DTHREADS_PTHREADS_INCLUDE_DIR=${PTHREADS4W_INCLUDE_DIR}
|
||||||
|
Loading…
Reference in New Issue
Block a user