Change OpenSSL binary path (again)

This commit is contained in:
Andrew Nelless 2017-02-08 12:38:59 +00:00
parent 839318add6
commit 6a5abbe3c2
190 changed files with 9 additions and 8 deletions

View File

@ -292,22 +292,21 @@ else() # not-unix
endif()
if (WIN32)
set(OPENSSL_BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ext/openssl/windows)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(OPENSSL_ARCH_DIR win64)
set(OPENSSL_BASE_DIR "${OPENSSL_BASE_DIR}/x64")
else()
set(OPENSSL_ARCH_DIR win32)
set(OPENSSL_BASE_DIR "${OPENSSL_BASE_DIR}/x86")
endif()
set(OPENSSL_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/ext/openssl/${OPENSSL_ARCH_DIR}/include)
set(OPENSSL_LIBS
${CMAKE_CURRENT_SOURCE_DIR}/ext/openssl/${OPENSSL_ARCH_DIR}/lib/libeay32.lib
${CMAKE_CURRENT_SOURCE_DIR}/ext/openssl/${OPENSSL_ARCH_DIR}/lib/ssleay32.lib
${OPENSSL_BASE_DIR}/lib/libeay32.lib
${OPENSSL_BASE_DIR}/lib/ssleay32.lib
)
endif()
if (UNIX)
if (APPLE)
set(OPENSSL_BASE_DIR /usr/local/opt/openssl)
set(OPENSSL_INCLUDE ${OPENSSL_BASE_DIR}/include)
set(OPENSSL_LIBS
${OPENSSL_BASE_DIR}/lib/libssl.a
${OPENSSL_BASE_DIR}/lib/libcrypto.a
@ -317,6 +316,8 @@ if (UNIX)
endif()
endif()
set(OPENSSL_INCLUDE ${OPENSSL_BASE_DIR}/include)
if (WIN32)
# TODO: consider using /analyze to uncover potential bugs in the source code.

Some files were not shown because too many files have changed in this diff Show More