mirror of
https://github.com/json-c/json-c.git
synced 2026-04-03 20:39:07 +08:00
Merge pull request #907 from travier/master-cmake4
tests/CMakeLists: Allow build with CMake 4
This commit is contained in:
@@ -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)
|
add_executable(test1Formatted test1.c parse_flags.c parse_flags.h)
|
||||||
target_compile_definitions(test1Formatted PRIVATE TEST_FORMATTED=1)
|
target_compile_definitions(test1Formatted PRIVATE TEST_FORMATTED=1)
|
||||||
target_link_libraries(test1Formatted PRIVATE ${PROJECT_NAME})
|
target_link_libraries(test1Formatted PRIVATE ${PROJECT_NAME})
|
||||||
|
|||||||
Reference in New Issue
Block a user