organize enabling asm condition in cmake

- add amd64 as same as x86_64
- add solaris(i386)
This commit is contained in:
kinichiro 2016-04-15 14:24:00 +09:00
parent 08089a1b20
commit 49eabdcb16

View File

@ -189,12 +189,16 @@ if(HAVE_ERR_H)
add_definitions(-DHAVE_ERR_H)
endif()
if("${CMAKE_C_COMPILER_ABI}" STREQUAL "ELF" AND "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" AND ENABLE_ASM)
set(HOST_ASM_ELF_X86_64 true)
endif()
if(APPLE AND "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64" AND ENABLE_ASM)
set(HOST_ASM_MACOSX_X86_64 true)
if(ENABLE_ASM)
if("${CMAKE_C_COMPILER_ABI}" STREQUAL "ELF")
if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(x86_64|amd64)")
set(HOST_ASM_ELF_X86_64 true)
elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i386")
set(HOST_ASM_ELF_X86_64 true)
endif()
elseif(APPLE AND "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
set(HOST_ASM_MACOSX_X86_64 true)
endif()
endif()
set(OPENSSL_LIBS ssl crypto)