mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 09:18:54 -05:00
Don't use pkg-config on MacOS when building rtlsdr libraries
This commit is contained in:
parent
c44ead4e11
commit
c04fda8794
4
external/CMakeLists.txt
vendored
4
external/CMakeLists.txt
vendored
@ -1067,10 +1067,10 @@ if (WIN32 OR APPLE)
|
|||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(LIBRTLSDR_LIBRARIES "${SDRANGEL_BINARY_LIB_DIR}/rtlsdr.lib" CACHE INTERNAL "")
|
set(LIBRTLSDR_LIBRARIES "${SDRANGEL_BINARY_LIB_DIR}/rtlsdr.lib" CACHE INTERNAL "")
|
||||||
set(RTLSDR_LIBUSB_INCLUDE "${LIBUSB_INCLUDE_DIR}/libusb-1.0")
|
set(RTLSDR_LIBUSB_INCLUDE "${LIBUSB_INCLUDE_DIR}/libusb-1.0")
|
||||||
|
endif ()
|
||||||
# Disable pkg-config to allow LIBUSB_INCLUDE_DIRS to be used
|
# Disable pkg-config to allow LIBUSB_INCLUDE_DIRS to be used
|
||||||
set(DISABLE_PKGCONFIG "-DCMAKE_DISABLE_FIND_PACKAGE_PkgConfig=ON")
|
set(DISABLE_PKGCONFIG "-DCMAKE_DISABLE_FIND_PACKAGE_PkgConfig=ON")
|
||||||
endif ()
|
# needs libusb
|
||||||
# needs pkgconfig and libusb
|
|
||||||
ExternalProject_Add(rtlsdr
|
ExternalProject_Add(rtlsdr
|
||||||
GIT_REPOSITORY https://github.com/osmocom/rtl-sdr.git
|
GIT_REPOSITORY https://github.com/osmocom/rtl-sdr.git
|
||||||
GIT_TAG ${RTLSDR_TAG}
|
GIT_TAG ${RTLSDR_TAG}
|
||||||
|
Loading…
Reference in New Issue
Block a user