Skip to content

More cmake options#177

Closed
xpol wants to merge 1 commit intomadler:developfrom
xpol:more-cmake-options
Closed

More cmake options#177
xpol wants to merge 1 commit intomadler:developfrom
xpol:more-cmake-options

Conversation

@xpol
Copy link
Copy Markdown

@xpol xpol commented Nov 28, 2016

Add follow 3 option to CMakeLists.txt:

option(ZLIB_BUILD_SHARED "Enable building zlib shared library" ON)
option(ZLIB_BUILD_STATIC "Enable building zlib static library" ON)
option(ZLIB_BUILD_EXAMPLES "Enable building zlib examples" ON)

@xpol xpol changed the base branch from master to develop November 28, 2016 07:56
- ZLIB_BUILD_SHARED: Enable building zlib shared library
- ZLIB_BUILD_STATIC: Enable building zlib static library
- ZLIB_BUILD_EXAMPLES: Enable building zlib examples
@xpol xpol force-pushed the more-cmake-options branch from 1230137 to 243930e Compare November 28, 2016 08:00
@warmwaffles
Copy link
Copy Markdown

@madler this would be a nice addition.

@dooglz
Copy link
Copy Markdown

dooglz commented Jan 2, 2017

@madler please consider merging😄 , Without these I'm getting unnecessary Example binaries in my parent project.

@jonathonracz
Copy link
Copy Markdown

I'd like to bump this and hopefully bring it to @madler 's attention - for those of us including zlib as a CMake sub-project, this is extremely useful for keeping generated projects + build outputs clean and is a no-risk change since the default behavior is identical to the current behavior.

@Vollstrecker Vollstrecker mentioned this pull request Dec 11, 2024
@Neustradamus Neustradamus mentioned this pull request Jan 1, 2025
@madler
Copy link
Copy Markdown
Owner

madler commented Feb 2, 2025

See #1027 .

@madler madler closed this Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants