cmake: Build curve25519_ref.c if we build with libgcrypt

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit 0128ed0d2c)
This commit is contained in:
Andreas Schneider
2022-07-08 09:09:18 +02:00
parent 38b17e6e6e
commit b9ccaf6e23

View File

@@ -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