Use 64 bit openssl on Mac
This commit is contained in:
parent
84c8c891af
commit
c79759115b
|
@ -174,7 +174,7 @@ if (UNIX)
|
||||||
CACHE STRING "" FORCE)
|
CACHE STRING "" FORCE)
|
||||||
else()
|
else()
|
||||||
# >= 10.6: Intel only
|
# >= 10.6: Intel only
|
||||||
set(CMAKE_OSX_ARCHITECTURES "i386"
|
set(CMAKE_OSX_ARCHITECTURES "x86_64"
|
||||||
CACHE STRING "" FORCE)
|
CACHE STRING "" FORCE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -333,7 +333,8 @@ endif()
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
set(OPENSSL_PLAT_DIR openssl-osx)
|
set(OPENSSL_PLAT_DIR openssl-osx)
|
||||||
set(OPENSSL_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/include)
|
set(OPENSSL_ARCH_DIR x86_64)
|
||||||
|
set(OPENSSL_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/${OPENSSL_ARCH_DIR}/include)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
|
@ -345,9 +346,10 @@ endif()
|
||||||
|
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
|
set(OPENSSL_ARCH_DIR x86_64)
|
||||||
set(OPENSSL_LIBS
|
set(OPENSSL_LIBS
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/libssl.a
|
${CMAKE_CURRENT_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/${OPENSSL_ARCH_DIR}/libssl.a
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/libcrypto.a
|
${CMAKE_CURRENT_SOURCE_DIR}/ext/${OPENSSL_PLAT_DIR}/${OPENSSL_ARCH_DIR}/libcrypto.a
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
set(OPENSSL_LIBS ssl crypto)
|
set(OPENSSL_LIBS ssl crypto)
|
||||||
|
|
Loading…
Reference in New Issue