]> git.ipfire.org Git - thirdparty/curl.git/commit
cmake: move global headers to specific checks
authorViktor Szakats <commit@vsz.me>
Mon, 25 Sep 2023 22:35:26 +0000 (22:35 +0000)
committerViktor Szakats <commit@vsz.me>
Tue, 26 Sep 2023 22:09:47 +0000 (22:09 +0000)
commit3795fcde995d96db641ddbcc8a04f9f0f03bef9f
tree81bf7be16789cc48921c35f85b99229440cb3f5c
parent9567c7ef122b8db6483e09f00248f7fc9f8526fd
cmake: move global headers to specific checks

Before this patch we added standard headers unconditionally to the
global list of headers used for feature checks. This is unnecessary
and also doesn't help CMake 'Generate' performance. This patch moves
these headers to each feature check where they are actually needed.
Stop using `stddef.h`, as it seems unnecessary.

I've used autotools' `m4/curl-functions.m4` to figure out these
dependencies.

Also delete checking for the C89 standard header `time.h`, that I
missed in the earlier commit.

Ref: 96c29900bcec32dd6bc8e9857c8871ff4b8b8ed9 #11940

Closes #11951
CMakeLists.txt