mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-23 00:56:21 +03:00
Change OpenSSL binary path (again)
This commit is contained in:
parent
839318add6
commit
6a5abbe3c2
@ -292,23 +292,22 @@ else() # not-unix
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
|
set(OPENSSL_BASE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/ext/openssl/windows)
|
||||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
set(OPENSSL_ARCH_DIR win64)
|
set(OPENSSL_BASE_DIR "${OPENSSL_BASE_DIR}/x64")
|
||||||
else()
|
else()
|
||||||
set(OPENSSL_ARCH_DIR win32)
|
set(OPENSSL_BASE_DIR "${OPENSSL_BASE_DIR}/x86")
|
||||||
endif()
|
endif()
|
||||||
set(OPENSSL_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/ext/openssl/${OPENSSL_ARCH_DIR}/include)
|
|
||||||
set(OPENSSL_LIBS
|
set(OPENSSL_LIBS
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/ext/openssl/${OPENSSL_ARCH_DIR}/lib/libeay32.lib
|
${OPENSSL_BASE_DIR}/lib/libeay32.lib
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/ext/openssl/${OPENSSL_ARCH_DIR}/lib/ssleay32.lib
|
${OPENSSL_BASE_DIR}/lib/ssleay32.lib
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
set(OPENSSL_BASE_DIR /usr/local/opt/openssl)
|
set(OPENSSL_BASE_DIR /usr/local/opt/openssl)
|
||||||
set(OPENSSL_INCLUDE ${OPENSSL_BASE_DIR}/include)
|
set(OPENSSL_LIBS
|
||||||
set(OPENSSL_LIBS
|
|
||||||
${OPENSSL_BASE_DIR}/lib/libssl.a
|
${OPENSSL_BASE_DIR}/lib/libssl.a
|
||||||
${OPENSSL_BASE_DIR}/lib/libcrypto.a
|
${OPENSSL_BASE_DIR}/lib/libcrypto.a
|
||||||
)
|
)
|
||||||
@ -317,6 +316,8 @@ if (UNIX)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(OPENSSL_INCLUDE ${OPENSSL_BASE_DIR}/include)
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
# TODO: consider using /analyze to uncover potential bugs in the source code.
|
# 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
Loading…
Reference in New Issue
Block a user