Skip to content

Commit adb9ab1

Browse files
authored
Merge pull request open-source-parsers#660 from SloCompTech/master
fixes open-source-parsers#659 fixes open-source-parsers#661
2 parents 2de1802 + 49da91c commit adb9ab1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ First, install both meson (which requires Python3) and ninja.
3838
Then,
3939

4040
cd jsoncpp/
41-
BUILD_TYPE=shared
42-
#BUILD_TYPE=static
43-
LIB_TYPE=debug
44-
#LIB_TYPE=release
41+
BUILD_TYPE=debug
42+
#BUILD_TYPE=release
43+
LIB_TYPE=shared
44+
#LIB_TYPE=static
4545
meson --buildtype ${BUILD_TYPE} --default-library ${LIB_TYPE} . build-${LIB_TYPE}
4646
ninja -v -C build-${LIB_TYPE} test
47+
cd build-${LIB_TYPE}
48+
sudo ninja install
4749

4850
### Building and testing with other build systems
4951
See https://github.com/open-source-parsers/jsoncpp/wiki/Building

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jsoncpp_cdata.set('JSONCPP_VERSION', meson.project_version())
1818
jsoncpp_cdata.set('JSONCPP_VERSION_MAJOR', jsoncpp_major_version)
1919
jsoncpp_cdata.set('JSONCPP_VERSION_MINOR', jsoncpp_minor_version)
2020
jsoncpp_cdata.set('JSONCPP_VERSION_PATCH', jsoncpp_patch_version)
21+
jsoncpp_cdata.set('JSONCPP_USE_SECURE_MEMORY',0)
2122

2223
jsoncpp_gen_sources = configure_file(
2324
input : 'src/lib_json/version.h.in',

0 commit comments

Comments
 (0)