fix(cmake): fix Mac error 'undefined symbols for architecture'

This commit is contained in:
Leonardo Nerone 2022-08-18 18:00:09 -03:00 committed by Leee *!* Clagett
parent 89bac4548b
commit 0435e7a2d3

View file

@ -251,6 +251,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