]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Switch to building a dynamic lib by default. Tweak language in the README.md slightl...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Wed, 12 Dec 2018 01:59:08 +0000 (20:59 -0500)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Wed, 12 Dec 2018 01:59:08 +0000 (20:59 -0500)
CMakeLists.txt
README.md

index 805e5dd3dca6d49e65ab6bb91519e93d9a044d6c..d4a1afbc328c09723ae875e3561b2bc00a003e79 100644 (file)
@@ -31,6 +31,8 @@ include(CPack)
 include(GNUInstallDirs)
 include(CMakePackageConfigHelpers)
 
+option(BUILD_SHARED_LIBS  "Default to building shared libraries" ON)
+
 # Enable or disable features. By default, all features are turned off.
 option(ENABLE_RDRAND                "Enable RDRAND Hardware RNG Hash Seed"          OFF)
 option(ENABLE_THREADING             "Enable partial threading support."             OFF)
index 8e12473f20c9e28bfbc8c7e766297c99fceb0180..67828484b26a1db07e360d671b2f33b4cf4a07a9 100644 (file)
--- a/README.md
+++ b/README.md
@@ -86,7 +86,7 @@ Then start from the "git clone" command, above.
 
 ### Manually install and build autoconf, automake and libtool
 
-For older OS's that don't have up-to-date version of the packages will
+For older OS's that don't have up-to-date versions of the packages will
 require a bit more work. For example, CentOS release 5.11, etc...
 
 ```sh
@@ -149,16 +149,17 @@ make
 
 CMake can take a few options.
 
-Variable          | Type | Description
-------------------|------|--------------
-BUILD_SHARED_LIBS | Bool | The default build generates static library. Enable this to generate shared (dll/so) library.
-ENABLE_RDRAND     | Bool | Enable RDRAND Hardware RNG Hash Seed
-ENABLE_THREADING  | Bool | Enable partial threading support
+Variable             | Type   | Description
+---------------------|--------|--------------
+CMAKE_INSTALL_PREFIX | String | The install location.
+BUILD_SHARED_LIBS    | Bool   | The default build generates a dynamic (dll/so) library.  Set this to OFF to create a static library instead.
+ENABLE_RDRAND        | Bool   | Enable RDRAND Hardware RNG Hash Seed
+ENABLE_THREADING     | Bool   | Enable partial threading support
 
 Pass these options as `-D` on CMake's command-line.
 
 ```sh
-cmake -DBUILD_SHARED_LIBS=On ...
+cmake -DBUILD_SHARED_LIBS=OFF ...
 ```
 
 Linking to `libjson-c` <a name="linking">