1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-09-02 02:48:00 +00:00

Fix libiio detection in macOS

This commit is contained in:
Carles Fernandez
2019-05-26 20:23:14 +02:00
parent 7004606f00
commit 09109b903d

View File

@@ -76,6 +76,12 @@ find_library(
$ENV{LIBIIO_ROOT}/lib64
)
if(LIBIIO_LIBRARIES AND APPLE)
if(LIBIIO_LIBRARIES MATCHES "framework")
set(LIBIIO_LIBRARIES ${LIBIIO_LIBRARIES}/iio)
endif()
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LIBIIO DEFAULT_MSG LIBIIO_LIBRARIES LIBIIO_INCLUDE_DIRS)