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 @@ -102,6 +102,7 @@ FIND_PACKAGE (Threads)
102102IF (GTEST_FOUND AND ZLIB_FOUND AND THREADS_FOUND)
103103 OPTION (MSGPACK_BUILD_TESTS "Build msgpack tests." ON )
104104ENDIF ()
105+ OPTION (MSGPACK_BUILD_EXAMPLES "Build msgpack examples." ON )
105106
106107OPTION (MSGPACK_ENABLE_CXX "Enable C++ interface." ON )
107108OPTION (MSGPACK_ENABLE_SHARED "Build shared libaries in addition to static libraries." ON )
@@ -292,7 +293,9 @@ IF (NOT DEFINED CMAKE_INSTALL_LIBDIR)
292293 SET (CMAKE_INSTALL_LIBDIR lib)
293294ENDIF ()
294295
295- ADD_SUBDIRECTORY (example)
296+ IF (MSGPACK_BUILD_EXAMPLES)
297+ ADD_SUBDIRECTORY (example)
298+ ENDIF ()
296299
297300IF (MSGPACK_ENABLE_SHARED)
298301 SET (MSGPACK_INSTALLTARGETS msgpack msgpack-static )
You can’t perform that action at this time.
0 commit comments