Skip to content

cmake: drop redundant FOUND checks (libgsasl, libssh, libuv) - #15465

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:cm-drop-idle-ifs
Closed

vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:cm-drop-idle-ifs

Conversation

@vszakats

@vszakats vszakats commented Oct 31, 2024 •

Copy link
Copy Markdown
Member

With find_package(... REQUIRED) the configuration fails and exits
if the package is not found. The ..._FOUND check afterwards always
evaluates true and safe to delete.

Also true for brotli and zstd, but those are addressed differently
via #15431.


w/o whitespace: https://github.com/curl/curl/pull/15465/files?w=1

With `find_package(... REQUIRED)` the configuration fails and exits
if the package is not found. The `..._FOUND` check afterwards always
evaluates true and safe to delete.

Also true for brotli and zstd, but those are addressed differently
via curl#15431.
@github-actions github-actions Bot added the build label Oct 31, 2024
@vszakats vszakats changed the title cmake: drop redundant FOUND checks cmake: drop redundant FOUND checks (libssh, libuv) Dec 16, 2024
@vszakats vszakats changed the title cmake: drop redundant FOUND checks (libssh, libuv) cmake: drop redundant FOUND checks (libgsasl, libssh, libuv) Dec 16, 2024
@vszakats vszakats closed this in 05ba353 Dec 16, 2024
@vszakats
vszakats deleted the cm-drop-idle-ifs branch December 18, 2024 23:53
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
With `find_package(... REQUIRED)` the configuration fails and exits
if the package is not found. The `..._FOUND` check afterwards always
evaluates true and safe to delete.

Also true for brotli and zstd, but those are addressed differently
via curl#15431.

Closes curl#15465
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant