Fixup cmake for macos.

This commit is contained in:
Pentarctagon 2021-05-22 14:58:40 -05:00
parent cbf8ae8a20
commit 370ec24ed7
No known key found for this signature in database
GPG key ID: 9456BC54A21DBFA0
2 changed files with 6 additions and 6 deletions

View file

@ -66,12 +66,12 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
# forbid defaulting to gnu++NN instead of c++NN
set(CMAKE_CXX_EXTENSIONS OFF)
if(NOT APPLE)
find_package(OpenSSL 1.0 REQUIRED)
else()
set(OPENSSL_CRYPTO_LIBRARY "-framework Security")
find_package(OpenSSL 1.0 REQUIRED)
if(APPLE)
find_library(IOKIT_LIBRARY IOKit REQUIRED)
find_library(SECURITY_LIBRARY Security REQUIRED)
endif()
find_package(OpenSSL REQUIRED)
find_package(Boost ${BOOST_VERSION} REQUIRED COMPONENTS iostreams program_options regex system thread random coroutine locale filesystem)
find_package(ICU REQUIRED COMPONENTS data i18n uc)

View file

@ -67,7 +67,7 @@ if(NOT WIN32)
endif(NOT WIN32)
if(APPLE)
set(game-external-libs ${game-external-libs} "-framework IOKit")
set(game-external-libs ${game-external-libs} ${IOKIT_LIBRARY} ${SECURITY_LIBRARY})
endif(APPLE)
if(MINGW)