Fixup cmake for macos.
This commit is contained in:
parent
cbf8ae8a20
commit
370ec24ed7
2 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue