1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-26 00:46:59 +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
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

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)