]> git.ipfire.org Git - thirdparty/curl.git/commit
cmake/FindLDAP: avoid empty 'Requires' item when omitting `pkg-config` module
authorViktor Szakats <commit@vsz.me>
Mon, 23 Dec 2024 20:36:23 +0000 (21:36 +0100)
committerViktor Szakats <commit@vsz.me>
Tue, 24 Dec 2024 10:59:02 +0000 (11:59 +0100)
commit32bc4288262f704e2e1f4e9f8dd9c06ece314b5f
tree57acf20cc4bca61301a98ed6ec2cee1c42b867a1
parent7a70b46481eb87f9fcacf1bb08b94be08af2c412
cmake/FindLDAP: avoid empty 'Requires' item when omitting `pkg-config` module

`list(APPEND ...)` does this automatically, but we're _prepending_ LDAP
(to follow historical code and also autotools). `list(PREPEND ...)`
would likely do that the same, but it requires CMake 3.15 so we do this
manually and the manual method needs to skip the empty value manually.

Follow-up to 49f2a23d509645d534cbb2e2ffbd6347fac6e59e #15273
Closes #15828
CMakeLists.txt