4 Commits

Author SHA1 Message Date
Eric Hawicz
05180c1fa3 Merge pull request #908 from travier/json-c-0.18-cmake4
[json-c-0.18] tests/CMakeLists: Allow build with CMake 4
2025-12-29 23:41:49 -05:00
Timothée Ravier
c86b729b83 tests/CMakeLists: Allow build with CMake 4
See: https://github.com/json-c/json-c/issues/889
2025-12-23 11:55:46 +01:00
Eric Hawicz
c56fbb30f5 Merge pull request #888 from heitbaum/patch-1
Allow build with cmake 4.0.0
2025-07-08 21:06:25 -04:00
Rudi Heitbaum
42864e12b0 Allow build with cmake 4.0.0
Update the min version to match parent CMakeLists.txt 3.9...3.12
2025-03-28 23:14:48 +11:00
2 changed files with 2 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
cmake_minimum_required(VERSION 2.8) # see ../CMakeLists.txt for why 2.8
cmake_minimum_required(VERSION 3.9...3.12) # see ../CMakeLists.txt for why
if(POLICY CMP0075)
cmake_policy(SET CMP0075 NEW)

View 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})