FindCURL: Add CURL_VERSION variable to match upstream cmake package

`find_package(CURL CONFIG)` provides `CURL_VERSION` from the upstream
cmake package version file.

Upstream curl commit `699ac9430c` (cmake: publish/check supported
protocols/features via `CURLConfig.cmake`, 2024-12-29) extends the
upstream cmake package to provide our old `CURL_VERSION_STRING`.
Provide both names from CMake's own module to aid transition.

Fixes: #26634
This commit is contained in:
Brad King
2025-01-28 09:45:18 -05:00
parent aeff709a27
commit d039da1c24
3 changed files with 21 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
FindCURL-version-var
--------------------
* The :module:`FindCURL` module now provides a ``CURL_VERSION`` result
variable to match upstream cURL's CMake package.