Merge pull request #908 from travier/json-c-0.18-cmake4

[json-c-0.18] tests/CMakeLists: Allow build with CMake 4
This commit is contained in:
Eric Hawicz
2025-12-29 23:41:49 -05:00
committed by GitHub
2 changed files with 2 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
cmake_minimum_required(VERSION 3.9...3.12)
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})