cmake: add ENABLE_DOC option.
doc subdirectory breaks Xcode generator
This commit is contained in:
parent
75a0d090df
commit
ff48a84a86
|
@ -515,7 +515,9 @@ add_subdirectory(python)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
#add_subdirectory(tests/testdata)
|
#add_subdirectory(tests/testdata)
|
||||||
add_subdirectory(integration-tests)
|
add_subdirectory(integration-tests)
|
||||||
add_subdirectory(doc)
|
if(ENABLE_DOC)
|
||||||
|
add_subdirectory(doc)
|
||||||
|
endif()
|
||||||
add_subdirectory(contrib)
|
add_subdirectory(contrib)
|
||||||
add_subdirectory(script)
|
add_subdirectory(script)
|
||||||
add_subdirectory(bpf)
|
add_subdirectory(bpf)
|
||||||
|
|
|
@ -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_SHARED_LIB "Build libnghttp2 as a shared library" ON)
|
||||||
option(ENABLE_STATIC_CRT "Build libnghttp2 against the MS LIBCMT[d]")
|
option(ENABLE_STATIC_CRT "Build libnghttp2 against the MS LIBCMT[d]")
|
||||||
option(ENABLE_HTTP3 "Enable HTTP/3 support" OFF)
|
option(ENABLE_HTTP3 "Enable HTTP/3 support" OFF)
|
||||||
|
option(ENABLE_DOC "Build documentation" ON)
|
||||||
|
|
||||||
option(WITH_LIBXML2 "Use libxml2"
|
option(WITH_LIBXML2 "Use libxml2"
|
||||||
${WITH_LIBXML2_DEFAULT})
|
${WITH_LIBXML2_DEFAULT})
|
||||||
|
|
Loading…
Reference in New Issue