From 8176925476a9c2b485046419473286c71c886a78 Mon Sep 17 00:00:00 2001 From: Leonardo Nerone Date: Thu, 18 Aug 2022 18:00:09 -0300 Subject: [PATCH] fix(cmake): fix Mac error 'undefined symbols for architecture' --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 159f2a9..d1f5173 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -205,6 +205,11 @@ foreach (LIB ${MONERO_LIBRARIES}) unset(LIB_PATH CACHE) endforeach() +if(APPLE) + find_library(IOKIT_LIBRARY IOKit) + list(APPEND IMPORTED_MONERO_LIBRARIES ${IOKIT_LIBRARY}) +endif() + add_library(monero::libraries INTERFACE IMPORTED) set_property(TARGET monero::libraries PROPERTY INTERFACE_INCLUDE_DIRECTORIES