Skip to content

cmake: honor individual picky option overrides found in CMAKE_C_FLAGS #17197

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

Closed
wants to merge 2 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Apr 26, 2025

Also to sync up with similar ./configure feature via
CURL_ADD_COMPILER_WARNINGS().

Example: -DCMAKE_C_FLAGS=-Wno-xor-used-as-pow

It may be useful as a workaround if a specific build combination hits
a picky warning within curl's source code. If such happens, we do
appreciate a report to fix it in curl itself.


w/o ws https://github.com/curl/curl/pull/17197/files?w=1

To allow overriding individual picky warning options via for example:
```
-DCMAKE_C_FLAGS=-Wno-xor-used-as-pow
```

Also to sync up with similar `./configure` feature in
`CURL_ADD_COMPILER_WARNINGS`.

It may be useful as a workaround if a specific build combination hits
a picky warning within curl's source code. If such happens, we do
appreciate a report to fix it in curl itself.
@vszakats vszakats added the cmake label Apr 26, 2025
@github-actions github-actions bot added the build label Apr 26, 2025
@vszakats vszakats changed the title cmake: honor individual picky option overrides via CMAKE_C_FLAGS cmake: honor individual picky option overrides in CMAKE_C_FLAGS Apr 26, 2025
@vszakats vszakats changed the title cmake: honor individual picky option overrides in CMAKE_C_FLAGS cmake: honor individual picky option overrides found in CMAKE_C_FLAGS Apr 26, 2025
@vszakats vszakats closed this in 978ef70 Apr 26, 2025
@vszakats vszakats deleted the cm-picky-override branch April 26, 2025 11:02
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