diff --git a/cmake/Modules/FindLIBIIO.cmake b/cmake/Modules/FindLIBIIO.cmake index 5a9a3806f..ccf9fd133 100644 --- a/cmake/Modules/FindLIBIIO.cmake +++ b/cmake/Modules/FindLIBIIO.cmake @@ -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)