Browse Source

Added documentation for camke-configure

tags/json-c-0.14-20200419
dota17 5 years ago
parent
commit
f69fbd897b
1 changed files with 23 additions and 0 deletions
  1. +23
    -0
      README.md

+ 23
- 0
README.md View File

@@ -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.


Loading…
Cancel
Save