Blame SOURCES/libmemcached-awesome-aes2.patch

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