Fix cmake build

This commit is contained in:
loonycyborg 2021-02-23 14:06:25 +03:00
parent 6732bf1e4d
commit 7f1f1cecdf
No known key found for this signature in database
GPG key ID: 6E8233FAB8F26D61
2 changed files with 3 additions and 0 deletions

View file

@ -77,6 +77,7 @@ if(NOT APPLE)
else()
set(CRYPTO_LIBRARY "-framework Security")
endif()
find_package(OpenSSL REQUIRED)
find_package(Boost ${BOOST_VERSION} REQUIRED COMPONENTS iostreams
program_options regex system thread random coroutine)

View file

@ -68,6 +68,7 @@ endif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(game-external-libs
${common-external-libs}
${CRYPTO_LIBRARY}
${OPENSSL_SSL_LIBRARY}
${Boost_SYSTEM_LIBRARIES}
${Boost_RANDOM_LIBRARY}
${Boost_THREAD_LIBRARY}
@ -94,6 +95,7 @@ set(server-external-libs
${Boost_RANDOM_LIBRARY}
${Boost_COROUTINE_LIBRARY}
${CRYPTO_LIBRARY}
${OPENSSL_SSL_LIBRARY}
${MYSQL_LIBS}
-lpthread
)