1
0
mirror of https://github.com/madler/zlib synced 2025-03-28 21:13:15 +00:00

105 Commits

Author SHA1 Message Date
Vollstrecker
5a82f71ed1 Use generated zconf.h in cmake build.
This restores the inclusion of the local zconf.h (double quoted)
in normal usage.
2025-02-18 15:00:15 -08:00
Mark Adler
8a844d434f Use zconf.h instead of zconf.h.in for cmake. 2025-02-06 17:16:52 -08:00
Vollstrecker
d20659fc74 Repair MinGW cmake build. 2025-02-06 16:23:45 -08:00
Vollstrecker
2c62f8885c CMake: Clean up spaces in required versions. 2025-01-31 20:02:26 -08:00
Vollstrecker
5a31e529bc CMake: Add the tested version of cmake (3.31).
Per @ClausKlein suggestion.
2025-01-31 20:02:26 -08:00
Vollstrecker
8b8a124eb4 CMake: Add cmake-format.yaml and reformat the cmake files. 2025-01-31 20:02:26 -08:00
Vollstrecker
4f2671d50c CMake: Remove unused variable. 2025-01-31 20:02:26 -08:00
Vollstrecker
b9cf26c056 CMake: Increase CMake minimum version to 3.12.
For HOMPAGE_URL.
2025-01-31 20:02:26 -08:00
Vollstrecker
33b8e6f507 CMake: Rename option to ZLIB_INSTALL.
Not only the libraries are installed.
2025-01-31 20:02:26 -08:00
Vollstrecker
abf7487d6c CMake: Add components selection. 2025-01-31 20:02:26 -08:00
Vollstrecker
f42008f5b4 CMake: Avoid double inclusion of CPack warning. 2025-01-31 20:02:26 -08:00
Vollstrecker
15a3751836 CMake: Order the includes consistently. 2025-01-31 20:02:26 -08:00
Vollstrecker
e573155946 CMake: Add CPack. 2025-01-31 20:01:41 -08:00
Vollstrecker
d80817ac95 CMake: Restore leading underscore in _LARGEFILE64_SOURCE. 2025-01-31 19:59:10 -08:00
Vollstrecker
5163cb6d3b CMake: Move testing into test/CMakeLists.txt.
Use the right environment to find the libraries.
2025-01-31 19:59:10 -08:00
Werner
dfaf27b0c8 CMake: Change to FindZLIB and ZLIB.cmake. 2025-01-31 19:59:10 -08:00
Vollstrecker
5ff476ee43 CMake: Add minizip. 2025-01-31 19:59:10 -08:00
Vollstrecker
adb40de349 CMake: Indicate a clear signature in add_test. 2025-01-31 19:59:10 -08:00
Vollstrecker
cff14d5dc3 CMake: Use the full version number. 2025-01-31 19:59:10 -08:00
Vollstrecker
82665659ad CMake: Remove leading underscore from _LARGEFILE64_SOURCE. 2025-01-31 19:59:10 -08:00
Vollstrecker
a7c6dbf821 CMake: Detect visibility attribute in MSVC. 2025-01-31 19:59:10 -08:00
Vollstrecker
79d96ebdb7 CMake: Clear variable with unset. 2025-01-31 19:59:10 -08:00
Vollstrecker
b5c01971c2 CMake: Remove zconf.h.
zconf.h is always created by cmake and configure.
2025-01-31 19:59:10 -08:00
Vollstrecker
3d6dc3c3aa CMake: Create zconf.h from zconf.h.in.
Instead of zconf.h.cmakein, which is removed.
2025-01-31 19:59:10 -08:00
Vollstrecker
9e058e8443 CMake: Add option for ZLIB_PREFIX. 2025-01-31 19:59:10 -08:00
Vollstrecker
53c2727aaf CMake: Silence deprecation warning on the action runners. 2025-01-31 19:59:10 -08:00
Vollstrecker
155d88378e CMake: Test static builds. 2025-01-31 19:59:10 -08:00
Vollstrecker
fd00a94838 CMake: Disable MinGW and Cygwin tests. 2025-01-31 19:59:10 -08:00
Vollstrecker
b74d77a0dd CMake: Install compatible DLL on MinGW. 2025-01-31 19:59:10 -08:00
Vollstrecker
e0b78cea4f CMake: Name the shared library cygz.dll on Cygwin. 2025-01-31 19:59:10 -08:00
Vollstrecker
7dc2b78206 CMake: Add test for usage with find_package. 2025-01-31 19:59:10 -08:00
Vollstrecker
a794225144 CMake: Permit install to put different things in different places. 2025-01-31 19:59:10 -08:00
Vollstrecker
f4624f3f03 CMake: Add zlibExport. 2025-01-31 19:59:10 -08:00
Vollstrecker
e37a1a8345 CMake: Warn if no build-type is selected. 2025-01-31 19:59:10 -08:00
Vollstrecker
f7ab6e4373 CMake: Add aliases to match the export names. 2025-01-31 19:59:10 -08:00
Vollstrecker
f0175c69e2 CMake: Add INSTALL_INTERFACE for a proper export. 2025-01-31 19:59:10 -08:00
Vollstrecker
633ec87677 CMake: Add zlib1.rc to Cygwin build. 2025-01-31 19:59:10 -08:00
Vollstrecker
48b9ee48ca CMake: Use CMAKE_DEBUG_POSTFIX for simplification. 2025-01-31 19:59:10 -08:00
Vollstrecker
c33f3bc641 CMake: Move version setting for Cygwin into set_target_properties. 2025-01-31 19:59:10 -08:00
Vollstrecker
b6cb6f4c21 CMake: Rename examples to testing to reflect their intent. 2025-01-31 19:59:10 -08:00
Vollstrecker
c18815b630 CMake: Simplify to one install option.
What to install is chosen with components.
2025-01-31 19:59:10 -08:00
Vollstrecker
64e8307d6a CMake: Make formatting consistent. 2025-01-31 19:59:10 -08:00
Vollstrecker
ffbbe01b6d CMake: Remove allowance for unclosed constructs. 2025-01-31 19:59:10 -08:00
Vollstrecker
1af1bb6ce4 CMake: Let cmake handle zlib1.rc. 2025-01-31 19:59:10 -08:00
Vollstrecker
899ef97c4a CMake: Use the same definition we checked for off64_t.
Move to target_compile_definitions.
2025-01-31 19:59:10 -08:00
Vollstrecker
31d2462c1d CMake: Move compile_definitions to the targets. 2025-01-31 19:59:10 -08:00
Vollstrecker
feb7fd325a CMake: Remove doubled include directories. 2025-01-31 19:59:10 -08:00
Vollstrecker
902f6eedf3 CMake: Remove checks for sys/types.h, stdint.h and stddef.h.
This is done by check_type_size.
2025-01-31 19:59:10 -08:00
Vollstrecker
2b2eec69b5 CMake: Remove unneeded renaming for in-tree builds and the option for it. 2025-01-31 19:59:10 -08:00
Vollstrecker
6762467523 CMake: Rename examples and tests to avoid chain building confusion. 2025-01-31 19:58:40 -08:00