Go to file
Viktor Szakats aafc074f87
cmake: clear package version after pkg-config detection
`pkg_check_modules()` seems to leave `<PACKAGE>_VERSION` defined with an
empty value, if the package is not found.

When the package is also not found in the fallback branch,
`find_package_handle_standard_args()` logs and error message. In this
message it includes the bogus empty value as: `(found version "")`:
```
Could NOT find Libssh2 (missing: LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY) (found version "")
```
https://github.com/curl/curl/actions/runs/11509727553/job/32040378958?pr=15408#step:31:99

Clear the version number to avoid the confusion:
```
Could NOT find Libssh2 (missing: LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY)
```
https://github.com/curl/curl/actions/runs/11510022503/job/32041149129?pr=15408#step:31:99

Seen with CMake v3.30.5.

Follow-up to 7bab201abe #15193
Closes #15409
2024-10-25 15:04:35 +02:00
.circleci GHA/linux: fix wolfSSL version in cache key 2024-10-03 01:17:40 +02:00
.github cmake: document -D and env build options 2024-10-24 23:06:40 +02:00
CMake cmake: clear package version after pkg-config detection 2024-10-25 15:04:35 +02:00
docs INSTALL-CMAKE: fix punctuation and a typo [ci skip] 2024-10-24 23:21:00 +02:00
include source: avoid use of 'very' in comments 2024-10-17 13:36:33 +02:00
lib cmake: document -D and env build options 2024-10-24 23:06:40 +02:00
LICENSES
m4 curl-rustls.m4: set linker flags to allow rustls build on macos 2024-10-13 23:10:45 +02:00
packages packages/OS400/curlmain: remove the strncpy calls 2024-10-10 07:47:41 +02:00
plan9
projects misc: general C style cleanups 2024-08-22 23:43:45 +02:00
scripts checksrc: add check for spaces around logical AND operators 2024-10-21 09:35:00 +02:00
src curl: detect ECH support dynamically, not at build time 2024-10-24 16:10:39 +02:00
tests cmake: document -D and env build options 2024-10-24 23:06:40 +02:00
winbuild winbuild: add initial wolfSSL support 2024-10-18 12:58:50 +02:00
.dir-locals.el
.git-blame-ignore-revs
.gitattributes winbuild: MS-DOS batch tidy-ups 2024-07-02 19:26:15 +02:00
.gitignore build: buildinfo.txt improvements 2024-09-19 15:56:30 +02:00
.mailmap mprintf: treat %o as unsigned, add tests for %o, %x, %X 2024-10-24 10:17:24 +02:00
acinclude.m4 cmake: use the BSD variable 2024-10-22 20:20:41 +02:00
appveyor.sh ci: dump curl_config.h to log in all jobs 2024-10-11 15:01:29 +02:00
appveyor.yml appveyor: bump to OpenSSL 3.3 2024-09-30 10:54:46 +02:00
buildconf
buildconf.bat
CHANGES.md CHANGES: rename to CHANGES.md, no longer generated 2024-08-01 13:37:12 +02:00
CMakeLists.txt cmake: document -D and env build options 2024-10-24 23:06:40 +02:00
configure.ac cmake: untangle feature detection interdependencies 2024-10-11 17:44:45 +02:00
COPYING
curl-config.in GHA/configure-vs-cmake: check libcurl.pc/curl-config, fix issues 2024-09-21 12:08:35 +02:00
Dockerfile Dockerfile: update Docker digest to d830561 2024-10-18 16:39:26 +02:00
GIT-INFO.md GIT-INFO.md: remove version requirements 2024-07-08 23:06:05 +02:00
libcurl.pc.in GHA/configure-vs-cmake: check libcurl.pc/curl-config, fix issues 2024-09-21 12:08:35 +02:00
Makefile.am build: add pytest targets 2024-09-25 09:25:44 +02:00
Makefile.dist Makefile.dist: fix ca-firefox target 2024-09-06 21:46:05 +02:00
README
README.md GHA: silence proselint warnings and an error 2024-10-15 16:44:17 +02:00
RELEASE-NOTES RELEASE-NOTES: synced 2024-10-24 14:35:24 +02:00
renovate.json GHA: drop "3" from openssl names and keys 2024-10-23 19:36:03 +02:00
REUSE.toml tests/server/util.c: remove use of strncpy 2024-10-10 07:47:01 +02:00
SECURITY.md docs: Clarify OpenSSF Best Practices vs Scorecard 2024-08-22 11:50:20 +02:00

curl logo

Curl is a command-line tool for transferring data specified with URL syntax. Learn how to use curl by reading the manpage or everything curl.

Find out how to install curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software. Read the libcurl manpage to learn how.

Open Source

curl is Open Source and is distributed under an MIT-like license.

Contact

Contact us on a suitable mailing list or use GitHub issues/ pull requests/ discussions.

All contributors to the project are listed in the THANKS document.

Commercial support

For commercial support, maybe private and dedicated help with your problems or applications using (lib)curl visit the support page.

Website

Visit the curl website for the latest news and downloads.

Source code

Download the latest source from the Git server:

git clone https://github.com/curl/curl.git

Security problems

Report suspected security problems via our HackerOne page and not in public.

Notice

Curl contains pieces of source code that is Copyright (c) 1998, 1999 Kungliga Tekniska Högskolan. This notice is included here to comply with the distribution terms.

Backers

Thank you to all our backers 🙏 Become a backer.

Sponsors

Support this project by becoming a sponsor.