cJSON

mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit 3d971db426c1bc30b266e9aa4394513e0f02b1fa
parent 30e1e7af7c63db9b55f5a3cda977a6c032f0b132
Author: Max Bruckner <max@maxbruckner.de>
Date:   Thu, 16 Mar 2017 01:25:09 +0100

README: Mention supported cmake and make versions

Diffstat:
MREADME.md | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md @@ -62,7 +62,7 @@ Because the entire library is only one C file and one header file, you can just cJSON is written in ANSI C (C89) in order to support as many platforms and compilers as possible. #### CMake -With CMake, cJSON supports a full blown build system. This way you get the most features. With CMake it is recommended to do an out of tree build, meaning the compiled files are put in a directory separate from the source files. So in order to build cJSON with CMake on a Unix platform, make a `build` directory and run CMake inside it. +With CMake, cJSON supports a full blown build system. This way you get the most features. CMake with an equal or higher version than 2.8.5 is supported. With CMake it is recommended to do an out of tree build, meaning the compiled files are put in a directory separate from the source files. So in order to build cJSON with CMake on a Unix platform, make a `build` directory and run CMake inside it. ``` mkdir build @@ -97,10 +97,8 @@ make make DESTDIR=$pkgdir install ``` -CMake supports a lot of different platforms, not only UNIX Makefiles, but only UNIX Makefiles have been tested. It works on GNU/Linux and has been confirmed to compile on some versions of macOS, Cygwin, FreeBSD, Solaris and OpenIndiana. - #### Makefile -If you don't have CMake available, but still have make. You can use the makefile to build cJSON: +If you don't have CMake available, but still have GNU make. You can use the makefile to build cJSON: Run this command in the directory with the source code and it will automatically compile static and shared libraries and a little test program.