aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-10-23 23:35:30 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-10-23 23:44:22 +0200
commit5ffca108a6ebe0395627846b66437c53c81a88f8 (patch)
tree0a56c9e17450be0abdc4bfc15cc3169a274e1d15
parent7e4b6714abaf2245e3ba590c67e93c2adf4d0a69 (diff)
downloadlibayatana-appindicator-5ffca108a6ebe0395627846b66437c53c81a88f8.tar.gz
libayatana-appindicator-5ffca108a6ebe0395627846b66437c53c81a88f8.tar.bz2
libayatana-appindicator-5ffca108a6ebe0395627846b66437c53c81a88f8.zip
CMakeLists.txt: Check for presence of gtk-doc executable if -DENABLE_GTKDOC=ON.
Fixes https://github.com/AyatanaIndicators/libayatana-appindicator/issues/15
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 232af6a..7aa1881 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -64,6 +64,14 @@ endif()
find_package(PkgConfig REQUIRED)
pkg_check_modules(PROJECT_DEPS REQUIRED ${DEPS})
+if (ENABLE_GTKDOC)
+ find_program (GTKDOC "gtk-doc")
+ if (NOT GTKDOC_FOUND)
+ message(WARNING "Building the gtk-doc API documentation is enabled, but the gtk-doc executable has not been found. Disabling API documentation building, although requested.")
+ set (ENABLE_GTKDOC OFF)
+ endif()
+endif()
+
# Set global variables
include(GNUInstallDirs)