CMakeLists.txt - Add openssl include dir

This commit is contained in:
Jaquee 2017-08-05 14:28:50 +02:00
parent 5ea20d6944
commit eec1013785
1 changed files with 2 additions and 0 deletions

View File

@ -337,6 +337,8 @@ if (APPLE AND NOT IOS)
endif()
find_package(OpenSSL REQUIRED)
message(STATUS "Using OpenSSL include dir at ${OPENSSL_INCLUDE_DIR}")
include_directories(${OPENSSL_INCLUDE_DIR})
if(STATIC AND NOT IOS)
if(UNIX)
set(OPENSSL_LIBRARIES "${OPENSSL_LIBRARIES};${CMAKE_DL_LIBS};${CMAKE_THREAD_LIBS_INIT}")