File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ option(JSONCPP_WITH_WARNING_AS_ERROR "Force compilation to fail if a warning occ
82
82
option (JSONCPP_WITH_STRICT_ISO "Issue all the warnings demanded by strict ISO C and ISO C++" ON )
83
83
option (JSONCPP_WITH_PKGCONFIG_SUPPORT "Generate and install .pc files" ON )
84
84
option (JSONCPP_WITH_CMAKE_PACKAGE "Generate and install cmake package files" ON )
85
+ option (JSONCPP_WITH_EXAMPLE "Compile JsonCpp example" ON )
85
86
option (BUILD_SHARED_LIBS "Build jsoncpp_lib as a shared library." OFF )
86
87
87
88
# Enable runtime search path support for dynamic libraries on OSX
@@ -228,4 +229,6 @@ add_subdirectory( src )
228
229
add_subdirectory ( include )
229
230
230
231
#install the example
231
- add_subdirectory ( example )
232
+ if (JSONCPP_WITH_EXAMPLE )
233
+ add_subdirectory ( example )
234
+ endif ()
You can’t perform that action at this time.
0 commit comments