mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-07 08:02:55 +03:00
Add an option to let users choose libgcrypt
This commit is contained in:
@@ -38,14 +38,20 @@ include(MacroCopyFile)
|
|||||||
# search for libraries
|
# search for libraries
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
|
|
||||||
find_package(OpenSSL)
|
if (WITH_GCRYPT)
|
||||||
|
find_package(GCrypt REQUIRED)
|
||||||
if (NOT CRYPTO_FOUND)
|
|
||||||
find_package(GCrypt)
|
|
||||||
if (NOT GCRYPT_FOUND)
|
if (NOT GCRYPT_FOUND)
|
||||||
message(FATAL_ERROR "Could not find OpenSSL or GCrypt")
|
message(FATAL_ERROR "Could not find GCrypt")
|
||||||
endif (NOT GCRYPT_FOUND)
|
endif (NOT GCRYPT_FOUND)
|
||||||
endif (NOT CRYPTO_FOUND)
|
else (WITH_GCRYPT)
|
||||||
|
find_package(OpenSSL)
|
||||||
|
if (NOT CRYPTO_FOUND)
|
||||||
|
find_package(GCrypt)
|
||||||
|
if (NOT GCRYPT_FOUND)
|
||||||
|
message(FATAL_ERROR "Could not find OpenSSL or GCrypt")
|
||||||
|
endif (NOT GCRYPT_FOUND)
|
||||||
|
endif (NOT CRYPTO_FOUND)
|
||||||
|
endif(WITH_GCRYPT)
|
||||||
|
|
||||||
# config.h checks
|
# config.h checks
|
||||||
include(ConfigureChecks.cmake)
|
include(ConfigureChecks.cmake)
|
||||||
|
@@ -5,3 +5,4 @@ option(WITH_SERVER "Build with SSH server support" ON)
|
|||||||
option(WITH_STATIC_LIB "Build with a static library" OFF)
|
option(WITH_STATIC_LIB "Build with a static library" OFF)
|
||||||
option(WITH_DEBUG_CRYPTO "Build with cryto debug output" OFF)
|
option(WITH_DEBUG_CRYPTO "Build with cryto debug output" OFF)
|
||||||
option(WITH_DEBUG_CALLTRACE "Build with calltrace debug output" ON)
|
option(WITH_DEBUG_CALLTRACE "Build with calltrace debug output" ON)
|
||||||
|
option(WITH_GCRYPT "Compile against libgcrypt" OFF)
|
||||||
|
Reference in New Issue
Block a user