From 8be2ffdcd7cda5db7e9d71f6837629cff729d0c0 Mon Sep 17 00:00:00 2001 From: Leon Gross Date: Wed, 6 Oct 2021 14:40:52 +0200 Subject: [PATCH] fix cmake version for tests --- README.md | 2 +- tests/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d2373fc6..231a4976 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Home page for json-c: https://github.com/json-c/json-c/wiki - `gcc`, `clang`, or another C compiler - - `cmake>=2.8`, `>=3.16` recommended + - `cmake>=2.8`, `>=3.16` recommended, `cmake=>3.1` for tests To generate docs you'll also need: - `doxygen>=1.8.13` diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index d7abf515..de426417 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,4 +1,4 @@ - +cmake_minimum_required(VERSION 3.1) 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}) -- 2.39.5