gnucash-docs maint: Add option to enable/disable html install rules
Geert Janssens
gjanssens at code.gnucash.org
Wed Jul 6 11:05:21 EDT 2022
Updated via https://github.com/Gnucash/gnucash-docs/commit/bdd42fe5 (commit)
from https://github.com/Gnucash/gnucash-docs/commit/b3f46b4f (commit)
commit bdd42fe57aaff81b97f3868a31347e4ffc1091eb
Author: Geert Janssens <geert at kobaltwit.be>
Date: Wed Jul 6 16:58:51 2022 +0200
Add option to enable/disable html install rules
It's only used on MacOS and interferes with the linux distribution builds.
The option is enabled by default on MacOS and disabled on other platforms.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9784defd..2b8ac267 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -53,6 +53,13 @@ else()
endif()
option (WITH_MOBI "Enable build rules for Mobipocket document format" OFF)
+if(APPLE)
+ option (WITH_HTML_INSTALL "Enable install rules for html document format" ON)
+else()
+ option (WITH_HTML_INSTALL "Enable install rules for html document format" OFF)
+endif()
+
+
# ############################################################
# Following parameters can equally be set using -D switches on the CMake command line.
# Set font dirs and font for Russian pdf documents
diff --git a/cmake/AddHtmlTarget.cmake b/cmake/AddHtmlTarget.cmake
index 917b5b9a..a3efa23f 100644
--- a/cmake/AddHtmlTarget.cmake
+++ b/cmake/AddHtmlTarget.cmake
@@ -54,7 +54,8 @@ function (add_html_target docname lang entities figures)
add_dependencies(${docname}-html "${lang}-${docname}-html")
- install(DIRECTORY ${BUILD_DIR}
- DESTINATION "${CMAKE_INSTALL_DOCDIR}/${lang}"
- )
+ if(WITH_HTML_INSTALL)
+ install(DIRECTORY ${BUILD_DIR}
+ DESTINATION "${CMAKE_INSTALL_DOCDIR}/${lang}")
+ endif()
endfunction()
Summary of changes:
CMakeLists.txt | 7 +++++++
cmake/AddHtmlTarget.cmake | 7 ++++---
2 files changed, 11 insertions(+), 3 deletions(-)
More information about the gnucash-changes
mailing list