]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
fix cmake version for tests 726/head
authorLeon Gross <leon.gross@rub.de>
Wed, 6 Oct 2021 12:40:52 +0000 (14:40 +0200)
committerLeon Gross <leon.gross@rub.de>
Wed, 6 Oct 2021 13:29:33 +0000 (15:29 +0200)
README.md
tests/CMakeLists.txt

index d2373fc637ff90eeed1cc8f49ca16da428bc4a99..231a49762d836ccc8f66f29860cf9c00e32e4379 100644 (file)
--- 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`
index d7abf51531e68b0fa661825870a91689f25abe67..de426417c708b36acf0e76d10a3398108956bd0b 100644 (file)
@@ -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})