1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-18 15:20:56 +03:00
Commit Graph

4 Commits

Author SHA1 Message Date
Viktor Szakats
5453fc8035 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
2023-08-13 10:20:57 +00:00
Viktor Szakats
c705ff3f37 cmake: add one missed PROJECT_NAME variable
Follow-up to 72fd25958a

Closes #1158
2023-08-11 23:09:52 +00:00
Viktor Szakats
72fd25958a cmake: replace libssh2 literals with PROJECT_NAME variable
Where applicable.

This also makes it more obvious which `libssh2` uses were referring
to the project itself.

Closes #1152
2023-08-09 15:47:49 +00:00
Viktor Szakats
2da13c13e1 cmake: re-add Libssh2:libssh2 for compatibiliy + lowercase namespace
- 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
2023-06-25 19:14:18 +00:00