gnucash-docs maint: Make calibre optional in cmake

Frank H.Ellenberger fell at code.gnucash.org
Fri Jun 18 22:10:50 EDT 2021


Updated	 via  https://github.com/Gnucash/gnucash-docs/commit/6d2877c5 (commit)
	from  https://github.com/Gnucash/gnucash-docs/commit/ec170e33 (commit)



commit 6d2877c523c090d45f96b9fc02b884bd92d45f6c
Author: Frank H. Ellenberger <frank.h.ellenberger at gmail.com>
Date:   Sat Jun 19 04:10:15 2021 +0200

    Make calibre optional in cmake

diff --git a/CMakeLists.txt b/CMakeLists.txt
index eaf2a23..2e06745 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -119,10 +119,11 @@ if(WITH_MOBI)
     find_program(EBOOK_CONVERT ebook-convert)
     if (NOT EBOOK_CONVERT)
         set(WITH_MOBI OFF)
-        message(SEND_ERROR "Couldn't find ebook-convert required for mobi file format support. Please install the Calibre package: https://www.calibre-ebook.com/")
+        message(WARNING "Can't find ebook-convert. To enable the generation of mobi files install the Calibre package: https://www.calibre-ebook.com/")
+    else()
+        # Mobi is based on epub so enable epub if mobi is requested
+        set(WITH_EPUB ON)
     endif()
-    # Mobi is based on epub so enable epub if mobi is requested
-    set(WITH_EPUB ON)
 else()
     message(STATUS "Mobi file format support is disabled.  Specify -DWITH_MOBI=ON if you want to enable it.")
 endif()



Summary of changes:
 CMakeLists.txt | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)



More information about the gnucash-changes mailing list