mirror of
https://github.com/curl/curl.git
synced 2026-06-03 05:34:15 +03:00
cmake: fix CURL_WERROR=ON for old CMake and use it in GHA/linux-old
- cmake: fix `-pedantic-errors` for old CMake with `CURL_WERROR=ON` set. `-pedantic-errors` option throws a warning with GCC (all versions) and makes `check_symbol_exists()` fail in CMake versions older than v3.23.0 (2022-03-29), when CMake introduced a workaround: https://gitlab.kitware.com/cmake/cmake/-/issues/13208eeb45401161ab7c3cd28Follow-up to3829759bd0#12489 - set `CURL_WERROR=ON` for the `linux-old` job in CI. Closes #13282
This commit is contained in:
parent
20c1b2d75e
commit
f43545e91b
2 changed files with 5 additions and 2 deletions
2
.github/workflows/linux-old.yml
vendored
2
.github/workflows/linux-old.yml
vendored
|
|
@ -83,7 +83,7 @@ jobs:
|
|||
run: |
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -DCMAKE_UNITY_BUILD=ON -DBUILD_SHARED_LIBS=ON -DENABLE_ARES=ON -DCURL_ZSTD=ON -DCURL_USE_LIBSSH=ON -DCURL_USE_GSSAPI=ON ..
|
||||
cmake -DCMAKE_UNITY_BUILD=ON -DCURL_WERROR=ON -DBUILD_SHARED_LIBS=ON -DENABLE_ARES=ON -DCURL_ZSTD=ON -DCURL_USE_LIBSSH=ON -DCURL_USE_GSSAPI=ON ..
|
||||
|
||||
- name: 'build'
|
||||
run: make -C build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue