1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-08-08 19:02:07 +03:00

cmake: fix libssh2-config.cmake for cmake <3.15

Replace `list(PREPEND ...)` for compatibility with CMake < 3.15.

Ref: https://cmake.org/cmake/help/latest/command/list.html#prepend

Follow-up to 82b09f9b3a #1322
Cherry-picked from #1581
Closes #1586
This commit is contained in:
Viktor Szakats
2025-04-25 15:09:59 +02:00
parent 3ae5ae3248
commit 117b02b442

View File

@@ -4,7 +4,7 @@
option(LIBSSH2_USE_PKGCONFIG "Enable pkg-config to detect @PROJECT_NAME@ dependencies. Default: @LIBSSH2_USE_PKGCONFIG@" "@LIBSSH2_USE_PKGCONFIG@")
include(CMakeFindDependencyMacro)
list(PREPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR} ${CMAKE_MODULE_PATH})
set(_lib "")
if("@CRYPTO_BACKEND@" STREQUAL "OpenSSL")