Blame SOURCES/libmemcached-awesome-aes2.patch

859e4c
diff --git a/src/libhashkit/CMakeLists.txt b/src/libhashkit/CMakeLists.txt
859e4c
index b820d27b..fb732fcf 100644
859e4c
--- a/src/libhashkit/CMakeLists.txt
859e4c
+++ b/src/libhashkit/CMakeLists.txt
859e4c
@@ -17,7 +17,6 @@ set(libhashkit_sources
859e4c
         murmur3.cc
859e4c
         murmur3_api.cc
859e4c
         one_at_a_time.cc
859e4c
-        rijndael.cc
859e4c
         str_algorithm.cc
859e4c
         strerror.cc
859e4c
         string.cc
859e4c
@@ -53,6 +52,10 @@ if(ENABLE_OPENSSL_CRYPTO)
859e4c
         endif()
859e4c
 endif()
859e4c
 
859e4c
+if (NOT OPENSSL_CRYPTO_LIBRARY)
859e4c
+        set (libhashkit_sources ${libhashkit_sources} rijndael.cc)
859e4c
+endif()
859e4c
+
859e4c
 configure_file(hashkitcon.h.in hashkitcon.h @ONLY)
859e4c
 
859e4c
 install(TARGETS libhashkit EXPORT libhashkit-targets
859e4c