aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-10-24 16:43:34 +0200
committerPřemysl Eric Janouch <p@janouch.name>2021-10-24 16:43:55 +0200
commit67acddb26de529770f88d3d542d3a8c5ce77e39c (patch)
tree66a33755bc94b2c7e094fe8a8331218a6d24ffb2
parentbc1dd64fdf84f6b9760fd8d69130dc5d964647bd (diff)
downloadlogdiag-67acddb26de529770f88d3d542d3a8c5ce77e39c.tar.gz
logdiag-67acddb26de529770f88d3d542d3a8c5ce77e39c.tar.xz
logdiag-67acddb26de529770f88d3d542d3a8c5ce77e39c.zip
Disable the broken gtk-doc rule by default
Unlikely to be used by anyone, especially since it cannot produce anything useful anymore.
-rw-r--r--CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8310071..0852a8b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,7 +4,8 @@ project (logdiag VERSION 0.2.1 LANGUAGES C)
# Options
option (OPTION_USE_VERA "Use vera++ for source code style checks" OFF)
-option (OPTION_NOINSTALL "Only for developers; work without installing" OFF)
+option (OPTION_NOINSTALL "For developers only--work without installing" OFF)
+option (OPTION_GTKDOC "For developers only--enable use of gtk-doc" OFF)
option (BUILD_TESTING "Build tests" OFF)
# Project information
@@ -249,7 +250,7 @@ if (BUILD_TESTING)
endif (BUILD_TESTING)
# Generate documentation
-if (GTKDOC_FOUND)
+if (OPTION_GTKDOC AND GTKDOC_FOUND)
# Extracted LDFLAGS didn't contain -l in CMake 3.21.3 and gtk-doc 1.33.2,
# pass them explicitly and work around insanity; CMake still exits with
# an error and gtk-doc produces empty HTML documentation