mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
add -framework AppKit for Apple
This commit is contained in:
parent
f83203ecef
commit
90246223c9
1 changed files with 3 additions and 1 deletions
|
@ -952,10 +952,12 @@ list(APPEND EXTRA_LIBRARIES ${CMAKE_DL_LIBS})
|
||||||
if (HIDAPI_FOUND OR LibUSB_COMPILE_TEST_PASSED)
|
if (HIDAPI_FOUND OR LibUSB_COMPILE_TEST_PASSED)
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
if(DEPENDS)
|
if(DEPENDS)
|
||||||
list(APPEND EXTRA_LIBRARIES "-framework Foundation -framework IOKit")
|
list(APPEND EXTRA_LIBRARIES "-framework Foundation -framework AppKit -framework IOKit")
|
||||||
else()
|
else()
|
||||||
find_library(COREFOUNDATION CoreFoundation)
|
find_library(COREFOUNDATION CoreFoundation)
|
||||||
|
find_library(APPKIT AppKit)
|
||||||
find_library(IOKIT IOKit)
|
find_library(IOKIT IOKit)
|
||||||
|
list(APPEND EXTRA_LIBRARIES ${APPKIT})
|
||||||
list(APPEND EXTRA_LIBRARIES ${IOKIT})
|
list(APPEND EXTRA_LIBRARIES ${IOKIT})
|
||||||
list(APPEND EXTRA_LIBRARIES ${COREFOUNDATION})
|
list(APPEND EXTRA_LIBRARIES ${COREFOUNDATION})
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue