This is an automated email from the ASF dual-hosted git repository.
alberto pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git
The following commit(s) were added to refs/heads/develop by this push:
new 049309470 GEODE-10426: Add option to toggle doc generation (#985)
049309470 is described below
commit 049309470cd01ddcb256cc2c0f60ed0aa3a4caf2
Author: Mario Salazar de Torres <[email protected]>
AuthorDate: Mon Oct 3 14:52:42 2022 +0200
GEODE-10426: Add option to toggle doc generation (#985)
- Added a option in the CMake project to enable documentation
generation.
- In order to maintain backward compatibility, by default documentation
generation is enabled.
---
CMakeLists.txt | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d820960e1..b73ce8676 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,6 +20,7 @@ option(USE_PCH "Use precompiled headers (PCH)." OFF)
option(USE_CPP_COVERAGE "Enable profiling and coverage report analysis for
apache-geode cpp library." OFF)
option(USE_RAT "Enable Apache Rat checking." OFF)
option(WITH_IPV6 "Enable IPv6 support." OFF)
+option(GEN_DOCS "Enable documentation generation" ON)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
@@ -358,7 +359,11 @@ add_subdirectory(dependencies)
add_subdirectory(cppcache)
add_subdirectory(sqliteimpl)
add_subdirectory(templates/security)
-add_subdirectory(docs/api)
+
+if (GEN_DOCS)
+ add_subdirectory(docs/api)
+endif()
+
add_subdirectory(examples)
if (${BUILD_CLI})
add_subdirectory(clicache)