gnucash-docs maint: cmake- build chm file by default on Windows
Geert Janssens
gjanssens at code.gnucash.org
Wed Jan 15 06:38:01 EST 2020
Updated via https://github.com/Gnucash/gnucash-docs/commit/4dc29733 (commit)
from https://github.com/Gnucash/gnucash-docs/commit/7c7b4e56 (commit)
commit 4dc29733e66717ead3e3e1087b01d75dea07986f
Author: Geert Janssens <geert at kobaltwit.be>
Date: Wed Jan 15 12:31:50 2020 +0100
cmake- build chm file by default on Windows
The chm targets were already enabled by default, but not built, that
is one still had to explicitly add the 'chm' target toi make or ninja
for chm files to get built.
This turned out to be a problem for our Windows build scripts
which are driven by jhbuild. While jhbuild allows to set ninjaargs
to drive ninja, that parameter appears to ignore targets and will
only accept command line options.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bbd08d2..eaff3a6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -171,7 +171,11 @@ if (WITH_MOBI)
add_custom_target(mobi)
endif()
if (WITH_CHM)
- add_custom_target(chm)
+ if(WIN32)
+ add_custom_target(chm ALL)
+ else()
+ add_custom_target(chm)
+ endif()
endif()
Summary of changes:
CMakeLists.txt | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list