From c801b6547f2d14f032bc0bb4015cae606ac70f91 Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Thu, 29 Apr 2021 16:32:06 +0200 Subject: [PATCH] Added workaround for pkgconfig not adding the right directories for libairspy --- airspy_source/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/airspy_source/CMakeLists.txt b/airspy_source/CMakeLists.txt index b70988de..9f6a08a2 100644 --- a/airspy_source/CMakeLists.txt +++ b/airspy_source/CMakeLists.txt @@ -30,6 +30,12 @@ else (MSVC) target_include_directories(airspy_source PUBLIC ${LIBAIRSPY_INCLUDE_DIRS}) target_link_directories(airspy_source PUBLIC ${LIBAIRSPY_LIBRARY_DIRS}) target_link_libraries(airspy_source PUBLIC ${LIBAIRSPY_LIBRARIES}) + + # Include it because for some reason pkgconfig doesn't look here? + if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + target_include_directories(airspy_source PUBLIC "/usr/local/include") + endif() + endif () # Install directives