From d04a2aeccf40d6f151e26999deffcd5bbaea1859 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Tue, 7 Feb 2017 21:44:37 +0100 Subject: [PATCH] README: Document additional CMake options --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index e04714f..bdbf3aa 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,8 @@ You can change the build process with a list of different options that you can p * `-DENABLE_CJSON_UTILS=On`: Enable building cJSON_Utils. (off by default) * `-DENABLE_TARGET_EXPORT=On`: Enable the export of CMake targets. Turn off if it makes problems. (on by default) * `-DENABLE_CUSTOM_COMPILER_FLAGS=On`: Enable custom compiler flags (currently for Clang and GCC). Turn off if it makes problems. (on by default) +* `-DENABLE_VALGRIND=On`: Run tests with [valgrind](http://valgrind.org). (off by default) +* `-DENABLE_SANITIZERS=On`: Compile cJSON with [AddressSanitizer](https://github.com/google/sanitizers/wiki/AddressSanitizer) and [UndefinedBehaviorSanitizer](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) enabled (if possible). (off by default) * `-DBUILD_SHARED_LIBS=On`: Build the shared libraries. (on by default) * `-DCMAKE_INSTALL_PREFIX=/usr`: Set a prefix for the installation.