From 2243e0ab14b7dc01e339801cae9895cc9d0a1bb2 Mon Sep 17 00:00:00 2001 From: johltn Date: Sun, 25 Oct 2020 12:52:48 +0100 Subject: [PATCH] Set BUILD_DOCUMENTATION to OFF by default and ignore ifcopenshell python documentation generation --- .gitignore | 1 + cmake/CMakeLists.txt | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 8ae9034d9c..c7e9cf7aad 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ __pycache__ /docs/output /docs/rst_files /docs/doxygen +/src/ifcblenderexport/docs/_build diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 35305d4db7..44a92828fe 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -37,6 +37,7 @@ OPTION(IFCXML_SUPPORT "Build IfcParse with ifcXML support (requires libxml2)." O OPTION(ENABLE_BUILD_OPTIMIZATIONS "Enable certain compiler and linker optimizations on RelWithDebInfo and Release builds." OFF) OPTION(IFCCONVERT_DOUBLE_PRECISION "IfcConvert: Use double precision floating-point numbers." ON) OPTION(BUILD_IFCGEOM "Build IfcGeom." ON) +OPTION(BUILD_DOCUMENTATION "Build IfcOpenShell Documentation." OFF) OPTION(BUILD_IFCPYTHON "Build IfcPython." ON) OPTION(BUILD_EXAMPLES "Build example applications." ON) OPTION(BUILD_GEOMSERVER "Build IfcGeomServer executable." ON) @@ -659,12 +660,11 @@ INSTALL(TARGETS IfcGeomServer endif() - -# Documentation -set(CMAKE_MODULE_PATH "../docs/cmake") -ADD_SUBDIRECTORY(../docs docs) - - +# Documentation +IF(BUILD_DOCUMENTATION) + set(CMAKE_MODULE_PATH "../docs/cmake") + ADD_SUBDIRECTORY(../docs docs) +ENDIF() IF(BUILD_IFCPYTHON) ADD_SUBDIRECTORY(../src/ifcwrap ifcwrap)