If libcrypto implementation of AES is used, do not compile internal 122/head
authorTomas Korbar <tkorbar@redhat.com>
Mon, 20 Sep 2021 08:04:09 +0000 (10:04 +0200)
committerTomas Korbar <tkorbar@redhat.com>
Mon, 20 Sep 2021 08:49:20 +0000 (10:49 +0200)
src/libhashkit/CMakeLists.txt

index b820d27bafb0fd703c1fcd4eebc1a1ca3ecc9b79..fb732fcfaf22f0df0c3461bd1cf1952070596014 100644 (file)
@@ -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