diff options
| author | Mikhaylov Anton <anion155@gmail.com> | 2020-02-04 13:40:15 +0500 |
|---|---|---|
| committer | Mikhaylov Anton <anion155@gmail.com> | 2020-02-04 13:40:15 +0500 |
| commit | d56ed7ee7613e969a3f304b3377438cc5a9064d4 (patch) | |
| tree | d352eee837443f070bbf5d6c5fdd9a6f22f4f8c2 /ports/jsoncpp/allow-disable-examples.patch | |
| parent | ab5b74c797f5a2bd6b28915908355e2b32876dfa (diff) | |
| parent | 85bf9d9d792e379e973d66c8af9f39d65d1d6d42 (diff) | |
| download | vcpkg-d56ed7ee7613e969a3f304b3377438cc5a9064d4.tar.gz vcpkg-d56ed7ee7613e969a3f304b3377438cc5a9064d4.zip | |
Merge branch 'master' into patch-1
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() |
