madler / zlib

A massively spiffy yet delicately unobtrusive compression library.
http://zlib.net/
Other
5.71k stars 2.45k forks source link

Allows example binaries skipping #824

Closed danielalves closed 9 months ago

danielalves commented 1 year ago

This PR allows developers to skip example binaries compilation and linking by setting the SKIP_EXAMPLE_BINARIES flag.

PS: This PR partially solves this open issue.

fredgan commented 1 year ago

Considering the used name SKIP_INSTALL_LIBRARIES, I think SKIP_BUILD_EXAMPLES will be better. And the build and test process should be a function for restructure. I am wondering is it necessary for this PR?

codeInnovation commented 1 year ago

I'd recommend using a CMake option to control if the examples are built. See #870.

madler commented 9 months ago

Earlier version applied. Thanks.