Blob Blame Raw
From 993e2a534572521b4c683258980ba6f9f0fe538a Mon Sep 17 00:00:00 2001
From: Bart Janssens <bart@bartjanssens.org>
Date: Sun, 25 Sep 2016 21:58:37 +0200
Subject: [PATCH 01/16] COMP: Default docs building to OFF

---
 CMakeLists.txt       | 2 +-
 share/CMakeLists.txt | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8c116db5..c570d999 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -228,7 +228,7 @@ OPTION(K3D_BUILD_WINDOWS_MODULE "Build the Windows integration module" ${WIN32})
 OPTION(K3D_BUILD_XTRACKCAD_MODULE "Build the XTrackCAD Model Railroad integration module" ON)
 OPTION(K3D_BUILD_YAFRAY_MODULE "Build the YAFRAY render engine integration module" ON)
 
-OPTION(K3D_BUILD_DOCS "Build the documentation" ON)
+OPTION(K3D_BUILD_DOCS "Build the documentation" OFF)
 OPTION(K3D_BUILD_GUIDE "Build the html guide" ON)
 
 OPTION(K3D_ENABLE_OSX_BUNDLE "Package K-3D as an OSX bundle (ignored on other platforms)." OFF)
diff --git a/share/CMakeLists.txt b/share/CMakeLists.txt
index 3e1cb018..9420dff6 100644
--- a/share/CMakeLists.txt
+++ b/share/CMakeLists.txt
@@ -12,5 +12,4 @@ FUNCTION(K3D_ADD_SHARE_FILES PATTERN TARGET)
 ENDFUNCTION()
 
 K3D_ADD_SUBDIRECTORY(man REQUIRES K3D_BUILD_DOCS)
-ADD_SUBDIRECTORY(k3d)
-
+K3D_ADD_SUBDIRECTORY(k3d REQUIRES K3D_BUILD_DOCS)
-- 
2.20.1