diff options
| author | Brent Cook <bcook@openbsd.org> | 2016-05-02 01:58:18 -0500 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2016-05-02 01:58:18 -0500 |
| commit | a653a67a1ee84e41e0a989ecdc54a17e32fdd6fe (patch) | |
| tree | 106c0df3da2b3032a5c01fcfebccf8d6de9c64d9 /crypto | |
| parent | 466e389d3f52c9e75cf4849669bca16e512ee110 (diff) | |
| parent | bda62f7fe4ad3965f8f6e7f06838c76455340567 (diff) | |
| download | portable-a653a67a1ee84e41e0a989ecdc54a17e32fdd6fe.tar.gz portable-a653a67a1ee84e41e0a989ecdc54a17e32fdd6fe.tar.bz2 portable-a653a67a1ee84e41e0a989ecdc54a17e32fdd6fe.zip | |
Land #189, Added extra cmake build options like autotools builds
Diffstat (limited to 'crypto')
| -rw-r--r-- | crypto/CMakeLists.txt | 6 |
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() |
| 743 | endif() | 743 | endif() |
| 744 | 744 | ||
| 745 | if(NOT "${OPENSSLDIR}" STREQUAL "") | ||
| 746 | add_definitions(-DOPENSSLDIR=\"${OPENSSLDIR}\") | ||
| 747 | else() | ||
| 748 | add_definitions(-DOPENSSLDIR=\"${CMAKE_INSTALL_PREFIX}/etc/ssl\") | ||
| 749 | endif() | ||
| 750 | |||
| 745 | if (BUILD_SHARED) | 751 | if (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>) |
