mirror of
https://github.com/libssh2/libssh2.git
synced 2025-08-08 19:02:07 +03:00
cmake: prefer find_dependency()
in libssh2-config.cmake
CMake manual suggest using `find_dependency()` (over `find_package()`) in `config.cmake` scripts. Ref: https://cmake.org/cmake/help/latest/module/CMakeFindDependencyMacro.html Closes #1460
This commit is contained in:
@@ -7,11 +7,11 @@ list(PREPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
|
||||
if("@CRYPTO_BACKEND@" STREQUAL "OpenSSL")
|
||||
find_dependency(OpenSSL)
|
||||
elseif("@CRYPTO_BACKEND@" STREQUAL "wolfSSL")
|
||||
find_package(WolfSSL)
|
||||
find_dependency(WolfSSL)
|
||||
elseif("@CRYPTO_BACKEND@" STREQUAL "Libgcrypt")
|
||||
find_package(Libgcrypt)
|
||||
find_dependency(Libgcrypt)
|
||||
elseif("@CRYPTO_BACKEND@" STREQUAL "mbedTLS")
|
||||
find_package(MbedTLS)
|
||||
find_dependency(MbedTLS)
|
||||
endif()
|
||||
|
||||
if(@ZLIB_FOUND@)
|
||||
|
Reference in New Issue
Block a user