From 0dc8017cc3b4ccd4d6d79fa5821d5fd48d6f5a3f Mon Sep 17 00:00:00 2001 From: Tomas Korbar Date: Mon, 20 Sep 2021 10:04:09 +0200 Subject: [PATCH] If libcrypto implementation of AES is used, do not compile internal --- src/libhashkit/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libhashkit/CMakeLists.txt b/src/libhashkit/CMakeLists.txt index b820d27b..fb732fcf 100644 --- a/src/libhashkit/CMakeLists.txt +++ b/src/libhashkit/CMakeLists.txt @@ -17,7 +17,6 @@ set(libhashkit_sources murmur3.cc murmur3_api.cc one_at_a_time.cc - rijndael.cc str_algorithm.cc strerror.cc string.cc @@ -53,6 +52,10 @@ if(ENABLE_OPENSSL_CRYPTO) endif() endif() +if (NOT OPENSSL_CRYPTO_LIBRARY) + set (libhashkit_sources ${libhashkit_sources} rijndael.cc) +endif() + configure_file(hashkitcon.h.in hashkitcon.h @ONLY) install(TARGETS libhashkit EXPORT libhashkit-targets -- 2.30.2