Skip to content

cmake/Find*: drop deprecated compatibility config variables - #23139

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

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

Conversation

@vszakats

@vszakats vszakats commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

If you use these variables, replace them like so:

  • MBEDTLS_INCLUDE_DIRS -> MBEDTLS_INCLUDE_DIR
  • WolfSSL_INCLUDE_DIR -> WOLFSSL_INCLUDE_DIR
  • WolfSSL_LIBRARY -> WOLFSSL_LIBRARY
  • Zstd_INCLUDE_DIR -> ZSTD_INCLUDE_DIR
  • Zstd_LIBRARY -> ZSTD_LIBRARY

They were deprecated two years ago in curl 8.10.0.

Follow-up to 9fbda4c #14574
Follow-up to db39c66 #14542


This also fixes weird behavior of the compatibility logic when
re-run on an existing configuration.

If you use these variables, replace them like so:
- `MBEDTLS_INCLUDE_DIRS` -> `MBEDTLS_INCLUDE_DIR`
- `WolfSSL_INCLUDE_DIR`  -> `WOLFSSL_INCLUDE_DIR`
- `WolfSSL_LIBRARY`      -> `WOLFSSL_LIBRARY`
- `Zstd_INCLUDE_DIR`     -> `ZSTD_INCLUDE_DIR`
- `Zstd_LIBRARY`         -> `ZSTD_LIBRARY`

Follow-up to 9fbda4c curl#14574
Follow-up to db39c66 curl#14542

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The deprecated aliases are removed consistently, with no remaining repository references or functional regressions identified.

Review effort: Balanced
Findings: None

What changed in this PR

Removes expired CMake compatibility aliases for deprecated dependency configuration variables.

Changes:

  • Drops legacy variable mappings for mbedTLS, wolfSSL, and zstd.
  • Leaves the documented uppercase variables as the supported interface.
File Description
CMake/​FindMbedTLS.cmake Removes MBEDTLS_INCLUDE_DIRS compatibility handling.
CMake/​FindWolfSSL.cmake Removes mixed-case wolfSSL aliases.
CMake/​FindZstd.cmake Removes mixed-case zstd aliases.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vszakats vszakats changed the title cmake/Find*: drop deprecated compatibility manual variables cmake/Find*: drop deprecated manual compatibility variables Sep 28, 2026
@vszakats vszakats changed the title cmake/Find*: drop deprecated manual compatibility variables cmake/Find*: drop deprecated compatibility variables Sep 28, 2026
@vszakats vszakats changed the title cmake/Find*: drop deprecated compatibility variables cmake/Find*: drop deprecated compatibility config variables Sep 28, 2026
@vszakats vszakats closed this in 013c14a Sep 28, 2026
@vszakats
vszakats deleted the cm-drop-compat branch September 28, 2026 13:30
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.

2 participants