Merge pull request #46 from LeoNero/fix/apple-compilation

fix(cmake): fix Mac error 'undefined symbols for architecture'
This commit is contained in:
Lee *!* Clagett 2022-08-30 14:17:42 -04:00 committed by GitHub
commit da77c10583
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -205,6 +205,11 @@ foreach (LIB ${MONERO_LIBRARIES})
unset(LIB_PATH CACHE) unset(LIB_PATH CACHE)
endforeach() endforeach()
if(APPLE)
find_library(IOKIT_LIBRARY IOKit)
list(APPEND IMPORTED_MONERO_LIBRARIES ${IOKIT_LIBRARY})
endif()
add_library(monero::libraries INTERFACE IMPORTED) add_library(monero::libraries INTERFACE IMPORTED)
set_property(TARGET monero::libraries PROPERTY set_property(TARGET monero::libraries PROPERTY
INTERFACE_INCLUDE_DIRECTORIES INTERFACE_INCLUDE_DIRECTORIES