build: Add option to enable/disable building docs

We only need to build the docs for proper releases
This commit is contained in:
John Colvin committed 2023-03-20 13:26:43 -04:00
1 parent b3d0040faa
commit 2bbe92dbab
1 file changed
+4 -1
+4 -1
View File
@@ -18,6 +18,7 @@ set(SPARK_BIN "${EXTERNALS_ROOT}/bin")
set(SPARK_INCLUDE "${EXTERNALS_ROOT}/include")
set(SPARK_LIB "${EXTERNALS_ROOT}/lib/$<CONFIG>")
set(BUILD_API_SERVER OFF CACHE BOOL "Build the api server")
set(BUILD_DOCS OFF CACHE BOOL "Build documentation")
set(BUILD_SDK OFF CACHE BOOL "Build the sdk")
set(BUILD_SPARKD ON CACHE BOOL "Build sparkd")
set(BUILD_WEB ON CACHE BOOL "Build the web server")
@@ -97,7 +98,9 @@ else()
if (BUILD_WEB)
add_subdirectory(src/Spark.Admin.Console)
endif()
add_subdirectory(doc/user)
if(BUILD_DOCS)
add_subdirectory(doc/user)
endif()
if(BUILD_SDK)
add_subdirectory(src/sdk)
endif()