mirror of
https://github.com/json-c/json-c.git
synced 2026-03-23 23:19:06 +08:00
tests/CMakeLists: Allow build with CMake 4
See: https://github.com/json-c/json-c/issues/889
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user