cmake: add ENABLE_DOC option.

doc subdirectory breaks Xcode generator
This commit is contained in:
Paweł Wegner 2021-07-06 22:06:03 +02:00 committed by Tatsuhiro Tsujikawa
parent 75a0d090df
commit ff48a84a86
2 changed files with 4 additions and 1 deletions

View File

@ -515,7 +515,9 @@ add_subdirectory(python)
add_subdirectory(tests)
#add_subdirectory(tests/testdata)
add_subdirectory(integration-tests)
add_subdirectory(doc)
if(ENABLE_DOC)
add_subdirectory(doc)
endif()
add_subdirectory(contrib)
add_subdirectory(script)
add_subdirectory(bpf)

View File

@ -18,6 +18,7 @@ option(ENABLE_STATIC_LIB "Build libnghttp2 in static mode also")
option(ENABLE_SHARED_LIB "Build libnghttp2 as a shared library" ON)
option(ENABLE_STATIC_CRT "Build libnghttp2 against the MS LIBCMT[d]")
option(ENABLE_HTTP3 "Enable HTTP/3 support" OFF)
option(ENABLE_DOC "Build documentation" ON)
option(WITH_LIBXML2 "Use libxml2"
${WITH_LIBXML2_DEFAULT})