aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorkinichiro <kinichiro.inoguchi@gmail.com>2016-04-11 12:59:23 +0900
committerkinichiro <kinichiro.inoguchi@gmail.com>2016-04-14 15:16:52 +0900
commitbda62f7fe4ad3965f8f6e7f06838c76455340567 (patch)
tree8686094e11d548e14d3207e8c80fc0b3183cfed2 /crypto
parentc94670a8cd39f8a8843e9adba2a6030adb00ac94 (diff)
downloadportable-bda62f7fe4ad3965f8f6e7f06838c76455340567.tar.gz
portable-bda62f7fe4ad3965f8f6e7f06838c76455340567.tar.bz2
portable-bda62f7fe4ad3965f8f6e7f06838c76455340567.zip
add cmake build options
- add cmake build options as configure provides * -DENABLE_ASM (default ON) * -DENABLE_EXTRATESTS (default OFF) * -DENABLE_NC (default OFF) * -DOPENSSLDIR (default ${CMAKE_INSTALL_PREFIX}/etc/ssl) - add biotest and pidwraptest if ENABLE_EXTRATESTS is ON - add compiler flag `-fno-common` if CMAKE_SYSTEM_NAME is Darwin to prevent link error Undefined symbols "_OPENSSL_ia32cap_P"
Diffstat (limited to 'crypto')
-rw-r--r--crypto/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt
index 4086168..2eca0b9 100644
--- a/crypto/CMakeLists.txt
+++ b/crypto/CMakeLists.txt
@@ -742,6 +742,12 @@ else()
742 endif() 742 endif()
743endif() 743endif()
744 744
745if(NOT "${OPENSSLDIR}" STREQUAL "")
746 add_definitions(-DOPENSSLDIR=\"${OPENSSLDIR}\")
747else()
748 add_definitions(-DOPENSSLDIR=\"${CMAKE_INSTALL_PREFIX}/etc/ssl\")
749endif()
750
745if (BUILD_SHARED) 751if (BUILD_SHARED)
746 add_library(crypto-objects OBJECT ${CRYPTO_SRC}) 752 add_library(crypto-objects OBJECT ${CRYPTO_SRC})
747 add_library(crypto STATIC $<TARGET_OBJECTS:crypto-objects>) 753 add_library(crypto STATIC $<TARGET_OBJECTS:crypto-objects>)