From 0128ed0d2c08fedfb9ae5a2b22d74f67188414b1 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 8 Jul 2022 09:09:18 +0200 Subject: [PATCH] cmake: Build curve25519_ref.c if we build with libgcrypt Signed-off-by: Andreas Schneider Reviewed-by: Jakub Jelen --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 08ba2aa9..5e65dff3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -300,12 +300,12 @@ if (WITH_GSSAPI AND GSSAPI_FOUND) endif (WITH_GSSAPI AND GSSAPI_FOUND) if (NOT WITH_NACL) - if (NOT HAVE_OPENSSL_ED25519) + if (NOT HAVE_LIBCRYPTO OR NOT HAVE_OPENSSL_ED25519) set(libssh_SRCS ${libssh_SRCS} external/curve25519_ref.c ) - endif (NOT HAVE_OPENSSL_ED25519) + endif() endif (NOT WITH_NACL) # Set the path to the default map file