Skip to content

Commit ad2ad95

Browse files
Merge pull request #18 from mythi/nostatic
Allow users to choose OpenSSL linking in Crypto multi-buffer library
2 parents 4376df4 + cbf5b4c commit ad2ad95

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sources/ippcp/crypto_mb/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ set(IFMA_INCLUDE_DIRS "${IFMA_INCLUDE_DIRS}"
3636
set(PUBLIC_HEADERS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include/crypto_mb/")
3737

3838
if(NOT BN_OPENSSL_DISABLE)
39-
set(OPENSSL_USE_STATIC_LIBS TRUE)
4039
find_package(OpenSSL 1.1.0 REQUIRED) # set -DOPENSSL_INCLUDE_DIR= -DOPENSSL_LIBRARIES= -DOPENSSL_ROOT_DIR= to use patched
4140
list(APPEND IFMA_INCLUDE_DIRS "${OPENSSL_INCLUDE_DIR}")
4241
endif()

sources/ippcp/crypto_mb/Readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ cmake . -B"../build"
115115
-DOPENSSL_ROOT_DIR=/path/to/openssl
116116
```
117117

118+
Set `-DOPENSSL_USE_STATIC_LIBS=TRUE` if static OpenSSL libraries are preferred.
119+
118120
## Usage Examples
119121

120122
You can find the examples of usage of the optimized kernels with Intel IPP Cryptography\* API in the `<ipp-crypto-dir>/examples/rsa_mb` folder.

0 commit comments

Comments
 (0)