]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Added documentation for camke-configure
authordota17 <chenguopingdota@163.com>
Tue, 25 Feb 2020 07:01:05 +0000 (15:01 +0800)
committerdota17 <chenguopingdota@163.com>
Tue, 25 Feb 2020 07:01:05 +0000 (15:01 +0800)
README.md

index dcc98dcc64b037c24c1dd7bc4c5e9885ce8d27b2..e9ef491b54f9eb7f58ef7ba1c1f2071a24c86ce1 100644 (file)
--- a/README.md
+++ b/README.md
@@ -174,6 +174,29 @@ Pass these options as `-D` on CMake's command-line.
 cmake -DBUILD_SHARED_LIBS=OFF ...
 ```
 
+cmake-configure: Wrapper around cmake to emulate useful options 
+
+To use cmake-configure,build it like:
+
+```sh
+mkdir build
+cd build
+../cmake-configure --disable-werror
+make
+```
+
+cmake-configure can take a few options.
+
+| options | Description|
+| ---- | ---- |
+| prefix=PREFIX |  install architecture-independent files in PREFIX | 
+| enable-threading |  Enable code to support partly multi-threaded use |
+| enable-rdrand | Enable RDRAND Hardware RNG Hash Seed generation on supported x86/x64 platforms. | 
+| enable-shared  |  build shared libraries [default=yes] |
+| enable-static  |  build static libraries [default=yes] |
+| disable-Bsymbolic |  Avoid linking with -Bsymbolic-function |
+| disable-werror |  Avoid treating compiler warnings as fatal errors |
+
 Testing with cmake:
 
 By default, if valgrind is available running tests uses it.