]> git.ipfire.org Git - thirdparty/curl.git/commit
cmake: add `BUILD_EXAMPLES` option to build examples
authorViktor Szakats <commit@vsz.me>
Sat, 27 Apr 2024 22:11:38 +0000 (00:11 +0200)
committerViktor Szakats <commit@vsz.me>
Sun, 28 Apr 2024 22:26:50 +0000 (00:26 +0200)
commitdfdd978f7c60224dffe2aac25b436dc0a5cd0186
treebb41ca38f4ad7808d9da0c0206073ef2d4976140
parentc8e0cd1de8db9eba00c284ebf5fd5b3cba263e06
cmake: add `BUILD_EXAMPLES` option to build examples

You can enable it with `-DBUILD_EXAMPLES=ON`.

To match autotools' `make examples` feature.
Windows (static) builds not tested.

Also enable examples in a pair of CI jobs.

Apply related updates to the macOS CI workflow:
- drop unused `CXX` envs.
- drop no longer needed `-Wno-error=undef -Wno-error=conversion` flags.
- pass `-Wno-deprecated-declarations` to GCC too (for `BUILD_EXAMPLES`).
- document why `-Wno-deprecated-declarations` is necessary.

Closes #13491
.github/workflows/macos.yml
CMakeLists.txt
docs/examples/CMakeLists.txt [new file with mode: 0644]