1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-28 15:56:33 -04:00

Merge pull request #1361 from srcejon/fix_1351

Don't use pkg-config on MacOS when building rtlsdr libraries
This commit is contained in:
Edouard Griffiths 2022-07-22 03:26:25 +02:00 committed by GitHub
commit da14591c93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1067,10 +1067,10 @@ if (WIN32 OR APPLE)
if (WIN32)
set(LIBRTLSDR_LIBRARIES "${SDRANGEL_BINARY_LIB_DIR}/rtlsdr.lib" CACHE INTERNAL "")
set(RTLSDR_LIBUSB_INCLUDE "${LIBUSB_INCLUDE_DIR}/libusb-1.0")
# Disable pkg-config to allow LIBUSB_INCLUDE_DIRS to be used
set(DISABLE_PKGCONFIG "-DCMAKE_DISABLE_FIND_PACKAGE_PkgConfig=ON")
endif ()
# needs pkgconfig and libusb
# Disable pkg-config to allow LIBUSB_INCLUDE_DIRS to be used
set(DISABLE_PKGCONFIG "-DCMAKE_DISABLE_FIND_PACKAGE_PkgConfig=ON")
# needs libusb
ExternalProject_Add(rtlsdr
GIT_REPOSITORY https://github.com/osmocom/rtl-sdr.git
GIT_TAG ${RTLSDR_TAG}