From: Timothée Ravier Date: Tue, 23 Dec 2025 10:52:07 +0000 (+0100) Subject: tests/CMakeLists: Allow build with CMake 4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4b9dfba49645b1aec4d31bc01e8327da4d90229;p=thirdparty%2Fjson-c.git tests/CMakeLists: Allow build with CMake 4 See: https://github.com/json-c/json-c/issues/889 --- diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 03c16dc..345f93d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -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})