macOS: Link with AppKit and Foundation frameworks
This commit is contained in:
parent
04e2b1ef84
commit
853f2147ef
2 changed files with 3 additions and 1 deletions
|
@ -73,6 +73,8 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
|||
find_package(OpenSSL 1.0 REQUIRED)
|
||||
|
||||
if(APPLE)
|
||||
find_library(APPKIT_LIBRARY AppKit REQUIRED)
|
||||
find_library(FOUNDATION_LIBRARY Foundation REQUIRED)
|
||||
find_library(IOKIT_LIBRARY IOKit REQUIRED)
|
||||
find_library(SECURITY_LIBRARY Security REQUIRED)
|
||||
endif()
|
||||
|
|
|
@ -41,7 +41,7 @@ if(MSVC)
|
|||
elseif(MINGW)
|
||||
set(common-external-libs ${common-external-libs} wsock32 ws2_32 shlwapi winmm crypt32)
|
||||
elseif(APPLE)
|
||||
set(common-external-libs ${common-external-libs} ${IOKIT_LIBRARY} ${SECURITY_LIBRARY})
|
||||
set(common-external-libs ${common-external-libs} ${APPKIT_LIBRARY} ${FOUNDATION_LIBRARY} ${IOKIT_LIBRARY} ${SECURITY_LIBRARY})
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
|
||||
|
|
Loading…
Add table
Reference in a new issue