diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-05-12 16:57:02 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-05-12 16:57:02 -0500 |
commit | 90703ba8bd184fc2f1ff3f168656ea38fff2e7a7 (patch) | |
tree | 9f22b6f49a44e7445b864f0cee7a47c18f7bb524 | |
parent | Merge pull request #7678 (diff) | |
parent | add -framework AppKit for Apple (diff) | |
download | monero-90703ba8bd184fc2f1ff3f168656ea38fff2e7a7.tar.xz |
Merge pull request #7687
cb9a2e4 add -framework AppKit for Apple (woodser)
-rw-r--r-- | CMakeLists.txt | 4 |
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() |