aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorwoodser <woodser@protonmail.com>2020-12-04 11:48:41 -0500
committerwoodser <woodser@protonmail.com>2021-04-26 18:30:32 -0400
commitcb9a2e4471ca8d56d7a075c5ab87363c6f5dd836 (patch)
tree5a5e5f61b2595d8f15569e7b384fa84913f1a739 /CMakeLists.txt
parentMerge pull request #7657 (diff)
downloadmonero-cb9a2e4471ca8d56d7a075c5ab87363c6f5dd836.tar.xz
add -framework AppKit for Apple
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7a68163dd..442d6770f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -931,10 +931,12 @@ list(APPEND EXTRA_LIBRARIES ${CMAKE_DL_LIBS})
if (HIDAPI_FOUND OR LibUSB_COMPILE_TEST_PASSED)
if (APPLE)
if(DEPENDS)
- list(APPEND EXTRA_LIBRARIES "-framework Foundation -framework IOKit")
+ list(APPEND EXTRA_LIBRARIES "-framework Foundation -framework AppKit -framework IOKit")
else()
find_library(COREFOUNDATION CoreFoundation)
+ find_library(APPKIT AppKit)
find_library(IOKIT IOKit)
+ list(APPEND EXTRA_LIBRARIES ${APPKIT})
list(APPEND EXTRA_LIBRARIES ${IOKIT})
list(APPEND EXTRA_LIBRARIES ${COREFOUNDATION})
endif()