Skip to content

Commit 4f8ec9d

Browse files
ya1gauravcdunn2001
authored andcommitted
Use standard CMake variables - static/shared lib.
Replaced JSONCPP_LIB_BUILD_SHARED => BUILD_SHARED_LIBS Replaced JSONCPP_LIB_BUILD_STATIC => BUILD_STATIC_LIBS
1 parent 0fe61a6 commit 4f8ec9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Steps for generating solution/makefiles using `cmake-gui`:
5858
* Make "source code" point to the source directory.
5959
* Make "where to build the binary" point to the directory to use for the build.
6060
* Click on the "Grouped" check box.
61-
* Review JsonCpp build options (tick `JSONCPP_LIB_BUILD_SHARED` to build as a
61+
* Review JsonCpp build options (tick `BUILD_SHARED_LIBS` to build as a
6262
dynamic library).
6363
* Click the configure button at the bottom, then the generate button.
6464
* The generated solution/makefiles can be found in the binary directory.
@@ -67,7 +67,7 @@ Alternatively, from the command-line on Unix in the source directory:
6767

6868
mkdir -p build/debug
6969
cd build/debug
70-
cmake -DCMAKE_BUILD_TYPE=debug -DJSONCPP_LIB_BUILD_STATIC=ON -DJSONCPP_LIB_BUILD_SHARED=OFF -G "Unix Makefiles" ../..
70+
cmake -DCMAKE_BUILD_TYPE=debug -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -G "Unix Makefiles" ../..
7171
make
7272

7373
Running `cmake -`" will display the list of available generators (passed using

0 commit comments

Comments
 (0)