mirror of
https://github.com/libssh2/libssh2.git
synced 2025-10-26 02:17:35 +03:00
- add `libssh2:libssh2` target that selects the shared lib if built, otherwise the static one. - re-add `Libssh2:libssh2` target for compatibility with v1.10.0 and earlier. This is an alias for `libssh2:libssh2`. - keep `libssh2:libssh2_shared` and `libssh2_libssh2_static` targets. - allow using `find_package(libssh2)` in dependents as an alternative to `find_package(Libssh2)`. Co-authored-by: Radek Brich Suggested-by: Haowei Hsu Fixes #1103 Fixes #731 Closes #1104
11 lines
346 B
CMake
11 lines
346 B
CMake
# Copyright (C) The libssh2 project and its contributors.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/libssh2-targets.cmake")
|
|
|
|
# Alias for either shared or static library
|
|
add_library(libssh2::libssh2 ALIAS libssh2::@LIB_SELECTED@)
|
|
|
|
# Compatibility alias
|
|
add_library(Libssh2::libssh2 ALIAS libssh2::@LIB_SELECTED@)
|