diff options
author | woodser <woodser@protonmail.com> | 2020-12-04 11:48:41 -0500 |
---|---|---|
committer | woodser <woodser@protonmail.com> | 2021-04-26 18:30:32 -0400 |
commit | cb9a2e4471ca8d56d7a075c5ab87363c6f5dd836 (patch) | |
tree | 5a5e5f61b2595d8f15569e7b384fa84913f1a739 /CMakeLists.txt | |
parent | Merge pull request #7657 (diff) | |
download | monero-cb9a2e4471ca8d56d7a075c5ab87363c6f5dd836.tar.xz |
add -framework AppKit for Apple
Diffstat (limited to 'CMakeLists.txt')
-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() |