Skip to content

Commit 0dc8017

Browse files
committed
If libcrypto implementation of AES is used, do not compile internal
1 parent 6079c0e commit 0dc8017

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/libhashkit/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ set(libhashkit_sources
1717
murmur3.cc
1818
murmur3_api.cc
1919
one_at_a_time.cc
20-
rijndael.cc
2120
str_algorithm.cc
2221
strerror.cc
2322
string.cc
@@ -53,6 +52,10 @@ if(ENABLE_OPENSSL_CRYPTO)
5352
endif()
5453
endif()
5554

55+
if (NOT OPENSSL_CRYPTO_LIBRARY)
56+
set (libhashkit_sources ${libhashkit_sources} rijndael.cc)
57+
endif()
58+
5659
configure_file(hashkitcon.h.in hashkitcon.h @ONLY)
5760

5861
install(TARGETS libhashkit EXPORT libhashkit-targets

0 commit comments

Comments
 (0)