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

cmake: add LIB_NAME variable

It holds the name `libssh2`. Mainly to document its uses, and also
syncing up with the same variable in libcurl.

Closes #1159
This commit is contained in:
Viktor Szakats
2023-08-13 09:07:26 +00:00
parent c705ff3f37
commit 5453fc8035
2 changed files with 5 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@-targets.cmake")
# Alias for either shared or static library
add_library(@PROJECT_NAME@::libssh2 ALIAS @PROJECT_NAME@::@LIB_SELECTED@)
add_library(@PROJECT_NAME@::@LIB_NAME@ ALIAS @PROJECT_NAME@::@LIB_SELECTED@)
# Compatibility alias
add_library(Libssh2::libssh2 ALIAS @PROJECT_NAME@::@LIB_SELECTED@)
add_library(Libssh2::@LIB_NAME@ ALIAS @PROJECT_NAME@::@LIB_SELECTED@)