]> git.ipfire.org Git - thirdparty/curl.git/commit
cmake: add `librtmp` Find module
authorViktor Szakats <commit@vsz.me>
Thu, 26 Dec 2024 10:34:24 +0000 (11:34 +0100)
committerViktor Szakats <commit@vsz.me>
Fri, 27 Dec 2024 11:52:23 +0000 (12:52 +0100)
commit421e592db25cbbe4baadfeef8e6ed75a57579d0a
treeab48c587f6faf4902c563a4f67fd7d906aae157f
parent5e1700d167a5ff8823095aa1c940b9eaab45b960
cmake: add `librtmp` Find module

The new detection method also allows to enable librtmp without using
OpenSSL as a curl TLS backend at the same time.

Also:
- implement manual version detection for librtmp.
  Version info is in hex. With CMake 3.13 and newer, extract it as a hex
  number. With earlier CMake version, just strip the leading zeroes.
  Doing more here seems overkill because librtmp has been standing
  at 2.3/2.4 for a decade now. Bumping into hex digits seems unlikely
  before deprecating CMake 3.13 support.
  librtmp advertises v2.4 via its `pkg-config` module, and v2.3 via
  its public header. The latter shows up in `curl -V` and either can
  be shown at configure-time depending on detection method.
  This isn't a curl bug.
- GHA/macos: enable rtmp in a job.
- apply the "half-detection" fix to the Find module.
  `librtmp` is also affected (in CI too), because it depends on libssl and
  libcrypto.

Closes #15832
.github/labeler.yml
.github/workflows/macos.yml
CMake/FindLibrtmp.cmake [new file with mode: 0644]
CMakeLists.txt
Makefile.am
docs/INSTALL-CMAKE.md