mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-10-19 11:09:47 +00:00
CMake: New option BUILD_SHARED_AND_STATIC_LIBS
This commit is contained in:
1 parent
45e1278acb
commit
04e27dc8c5
2 files changed
+29
-3
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user