]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
tests/CMakeLists: Allow build with CMake 4 907/head
authorTimothée Ravier <tim@siosm.fr>
Tue, 23 Dec 2025 10:52:07 +0000 (11:52 +0100)
committerTimothée Ravier <tim@siosm.fr>
Tue, 23 Dec 2025 10:52:43 +0000 (11:52 +0100)
See: https://github.com/json-c/json-c/issues/889

tests/CMakeLists.txt

index 03c16dc6f6da1b0a2642a42aedfaed408d165679..345f93da2ad5583c64c87240625ac1464680564f 100644 (file)
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.9)
+cmake_minimum_required(VERSION 3.9...3.12) # see ../CMakeLists.txt for why
 add_executable(test1Formatted test1.c parse_flags.c parse_flags.h)
 target_compile_definitions(test1Formatted PRIVATE TEST_FORMATTED=1)
 target_link_libraries(test1Formatted PRIVATE ${PROJECT_NAME})