aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-05-12 16:57:02 -0500
committerluigi1111 <luigi1111w@gmail.com>2021-05-12 16:57:02 -0500
commit90703ba8bd184fc2f1ff3f168656ea38fff2e7a7 (patch)
tree9f22b6f49a44e7445b864f0cee7a47c18f7bb524
parentMerge pull request #7678 (diff)
parentadd -framework AppKit for Apple (diff)
downloadmonero-90703ba8bd184fc2f1ff3f168656ea38fff2e7a7.tar.xz
Merge pull request #7687
cb9a2e4 add -framework AppKit for Apple (woodser)
-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()