From 8d4bd56217ab8f2701bc3f2fa643dcf45d460343 Mon Sep 17 00:00:00 2001 From: Hans Kristian Rosbach Date: Tue, 11 Nov 2025 17:24:26 +0100 Subject: Use CTest to simplify testing options Add CMake variable TEST_STOCK_ZLIB to disable some tests if attempting to run our testsuite on stock zlib. PR depends on CMP0077, introduced by CMake 3.13. Upped minimum compatible CMake version to 3.13, same as we have actually been telling people was the minumum for years on the wiki. Upped upper compatible CMake version to 3.31, my current version. --- test/test_shared_ng.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_shared_ng.h') diff --git a/test/test_shared_ng.h b/test/test_shared_ng.h index 81e451998f..f87ef027e2 100644 --- a/test/test_shared_ng.h +++ b/test/test_shared_ng.h @@ -8,7 +8,7 @@ static inline int deflate_prime_32(PREFIX3(stream) *stream, uint32_t value) { int err; -#ifdef ZLIBNG_ENABLE_TESTS +#ifndef TEST_STOCK_ZLIB err = PREFIX(deflatePrime)(stream, 32, value); #else /* zlib's deflatePrime() takes at most 16 bits */ -- cgit 0.0.5-2-1-g0f52