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: fix CURL_WERROR=ON for old CMake and use it in GHA/linux-old #13282

Closed
wants to merge 2 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Apr 4, 2024

Closes #13282

@vszakats vszakats marked this pull request as draft April 4, 2024 17:37
@github-actions github-actions bot added the CI Continuous Integration label Apr 4, 2024
@vszakats vszakats changed the title GHA: enable unity, fail on warnings, more https in linux-old GHA: enable unity, fail on warnings in linux-old Apr 4, 2024
@vszakats vszakats force-pushed the linux-old-tweaks branch 2 times, most recently from 9b5cd26 to eae006c Compare April 4, 2024 21:04
@vszakats vszakats changed the title GHA: enable unity, fail on warnings in linux-old GHA: fail on warnings, enable unity in linux-old Apr 4, 2024
@vszakats vszakats changed the title GHA: fail on warnings, enable unity in linux-old GHA: fail on warnings, enable unity, in linux-old Apr 4, 2024
@vszakats vszakats changed the title GHA: fail on warnings, enable unity, in linux-old GHA: fail on warnings in linux-old Apr 4, 2024
@vszakats vszakats changed the title GHA: fail on warnings in linux-old cmake: fix -pedentic-errors preconditions, set CURL_WERROR=ON for GHA/linux-old Apr 4, 2024
@vszakats vszakats changed the title cmake: fix -pedentic-errors preconditions, set CURL_WERROR=ON for GHA/linux-old cmake: fix -pedantic-errors preconditions, set CURL_WERROR=ON for GHA/linux-old Apr 4, 2024
vszakats added a commit to vszakats/curl that referenced this pull request Apr 4, 2024
@vszakats vszakats changed the title cmake: fix -pedantic-errors preconditions, set CURL_WERROR=ON for GHA/linux-old cmake: fix -pedantic-errors conditions, set CURL_WERROR=ON for GHA/linux-old Apr 4, 2024
vszakats added a commit to vszakats/curl that referenced this pull request Apr 4, 2024
@vszakats vszakats force-pushed the linux-old-tweaks branch 2 times, most recently from 0b904e8 to 491fcb4 Compare April 4, 2024 23:07
@vszakats vszakats marked this pull request as ready for review April 4, 2024 23:16
@vszakats vszakats changed the title cmake: fix -pedantic-errors conditions, set CURL_WERROR=ON for GHA/linux-old cmake: fix -pedantic-errors for old CMake, set CURL_WERROR=ON on GHA/linux-old Apr 4, 2024
@vszakats vszakats changed the title cmake: fix -pedantic-errors for old CMake, set CURL_WERROR=ON on GHA/linux-old cmake: fix `CURL_WERROR=ON for old CMake and set it on GHA/linux-old Apr 4, 2024
@vszakats vszakats changed the title cmake: fix `CURL_WERROR=ON for old CMake and set it on GHA/linux-old cmake: fix `CURL_WERROR=ON for old CMake and use it in GHA/linux-old Apr 4, 2024
@vszakats vszakats changed the title cmake: fix `CURL_WERROR=ON for old CMake and use it in GHA/linux-old cmake: fix CURL_WERROR=ON for old CMake and use it in GHA/linux-old Apr 4, 2024
`-pedantic-errors` option throws a warning with GCC (all versions) in
`check_symbol_exists()`, which makes feature checks fail. CMake v3.23.0
(2022-03-29) introduced a workaround:

https://gitlab.kitware.com/cmake/cmake/-/issues/13208
https://gitlab.kitware.com/cmake/cmake/-/commit/eeb45401163d831b8c841ef6eba81466b4067b68
https://gitlab.kitware.com/cmake/cmake/-/commit/1ab7c3cd28b27ca162c4559e1026e5cad1898ade

Make sure to not enable this option for CMake versions older than that.

Follow-up to 3829759 curl#12489
vszakats added a commit to vszakats/curl that referenced this pull request Apr 5, 2024
@vszakats vszakats closed this in f43545e Apr 5, 2024
@vszakats vszakats deleted the linux-old-tweaks branch April 5, 2024 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build CI Continuous Integration cmake
Development

Successfully merging this pull request may close these issues.

None yet

1 participant