diff options
| author | etri <etri3600@gmail.com> | 2020-01-30 04:49:19 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-29 11:49:19 -0800 |
| commit | 4a128176915b10de4ff87c28faa3b419b0c8442b (patch) | |
| tree | b8af7dd9f6aa97d63af3ff704ede35bae7b82c9c /ports/jsoncpp/allow-disable-examples.patch | |
| parent | f272b0c9846d24c2b77a5fb60e1061d397384acb (diff) | |
| download | vcpkg-4a128176915b10de4ff87c28faa3b419b0c8442b.tar.gz vcpkg-4a128176915b10de4ff87c28faa3b419b0c8442b.zip | |
[Jsoncpp] Update to 1.9.2 (#9759)
* Update jsoncpp 1.9.2
Using implicit int to float conversion is fixed from jsoncpp 1.9.2 version.
* Update Control
update jsoncpp 1.9.2
* remove deprecated function
include(vcpkg_common_functions)
* [jsoncpp] Allow disabling examples
Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
Diffstat (limited to 'ports/jsoncpp/allow-disable-examples.patch')
| -rw-r--r-- | ports/jsoncpp/allow-disable-examples.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ports/jsoncpp/allow-disable-examples.patch b/ports/jsoncpp/allow-disable-examples.patch new file mode 100644 index 000000000..83413db90 --- /dev/null +++ b/ports/jsoncpp/allow-disable-examples.patch @@ -0,0 +1,20 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8a7d3ef..4e06331 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -82,6 +82,7 @@ option(JSONCPP_WITH_WARNING_AS_ERROR "Force compilation to fail if a warning occ + option(JSONCPP_WITH_STRICT_ISO "Issue all the warnings demanded by strict ISO C and ISO C++" ON) + option(JSONCPP_WITH_PKGCONFIG_SUPPORT "Generate and install .pc files" ON) + option(JSONCPP_WITH_CMAKE_PACKAGE "Generate and install cmake package files" ON) ++option(JSONCPP_WITH_EXAMPLE "Compile JsonCpp example" OFF) + option(BUILD_SHARED_LIBS "Build jsoncpp_lib as a shared library." OFF) + + # Enable runtime search path support for dynamic libraries on OSX +@@ -228,4 +229,6 @@ add_subdirectory( src ) + add_subdirectory( include ) + + #install the example +-add_subdirectory( example ) ++if(JSONCPP_WITH_EXAMPLE) ++ add_subdirectory( example ) ++endif() |
