diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 710d8a9..8ab76ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -35,7 +35,6 @@ endif() | |||
35 | 35 | ||
36 | add_definitions(-DLIBRESSL_INTERNAL) | 36 | add_definitions(-DLIBRESSL_INTERNAL) |
37 | add_definitions(-DOPENSSL_NO_HW_PADLOCK) | 37 | add_definitions(-DOPENSSL_NO_HW_PADLOCK) |
38 | add_definitions(-DOPENSSL_NO_ASM) | ||
39 | 38 | ||
40 | set(CMAKE_POSITION_INDEPENDENT_CODE true) | 39 | set(CMAKE_POSITION_INDEPENDENT_CODE true) |
41 | 40 | ||
@@ -161,6 +160,14 @@ if(HAVE_ERR_H) | |||
161 | add_definitions(-DHAVE_ERR_H) | 160 | add_definitions(-DHAVE_ERR_H) |
162 | endif() | 161 | endif() |
163 | 162 | ||
163 | if("${CMAKE_C_COMPILER_ABI}" STREQUAL "ELF" AND "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" AND ENABLE_ASM) | ||
164 | set(HOST_ASM_ELF_X86_64 true) | ||
165 | endif() | ||
166 | |||
167 | if(APPLE AND "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" AND ENABLE_ASM) | ||
168 | set(HOST_ASM_MACOSX_X86_64 true) | ||
169 | endif() | ||
170 | |||
164 | set(OPENSSL_LIBS ssl crypto) | 171 | set(OPENSSL_LIBS ssl crypto) |
165 | if(CMAKE_HOST_WIN32) | 172 | if(CMAKE_HOST_WIN32) |
166 | set(OPENSSL_LIBS ${OPENSSL_LIBS} ws2_32) | 173 | set(OPENSSL_LIBS ${OPENSSL_LIBS} ws2_32) |