CMake: New option BUILD_SHARED_AND_STATIC_LIBS

This commit is contained in:
Max Bruckner
2017-06-07 00:15:23 +02:00
parent 45e1278acb
commit 04e27dc8c5
2 changed files with 29 additions and 3 deletions

View File

@@ -89,6 +89,7 @@ You can change the build process with a list of different options that you can p
* `-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)
* `-DBUILD_SHARED_AND_STATIC_LIBS=On`: Build both shared and static libraries. (off by default)
* `-DCMAKE_INSTALL_PREFIX=/usr`: Set a prefix for the installation.
If you are packaging cJSON for a distribution of Linux, you would probably take these steps for example: