Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: initialize variables where missing #16198

Closed
wants to merge 2 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Feb 6, 2025

As detected using cmake --warn-uninitialized.

It also lists:

https://cmake.org/cmake/help/latest/manual/cmake.1.html#cmdoption-cmake-warn-uninitialized

As detected using `cmake --warn-uninitialized`.

It also lists variables inherited from `Makefile.inc`, which this PR
does not fix. And also three envs: `CI`, `CURL_CI` and `CURL_BUILDINFO`.
That's unexpected:
https://cmake.org/cmake/help/latest/manual/cmake.1.html#cmdoption-cmake-warn-uninitialized
and as of August 2024, there is no solution to silence:
https://discourse.cmake.org/t/how-to-test-for-set-env-variables-without-getting-warnings/11401
@testclutch

This comment was marked as outdated.

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