aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-10-24 18:35:48 +0200
committerRobert Tari <robert@tari.in>2021-10-24 18:35:48 +0200
commitba37cb9de039f1ef8c1fa8231f859e6906d2970d (patch)
tree58dc1a601cd096fae54ad1cc0633713bf488d6d8
parent62c77b51b3d7e5cd692a5c019bc19807ed05ec57 (diff)
parentd80057c4b2c2d60d9acf6b760da2de1419d5531e (diff)
downloadlibayatana-appindicator-ba37cb9de039f1ef8c1fa8231f859e6906d2970d.tar.gz
libayatana-appindicator-ba37cb9de039f1ef8c1fa8231f859e6906d2970d.tar.bz2
libayatana-appindicator-ba37cb9de039f1ef8c1fa8231f859e6906d2970d.zip
Merge branch 'sunweaver-pr/check-for-gtk-doc'
Attributes GH PR #35: https://github.com/AyatanaIndicators/libayatana-appindicator/pull/35
-rw-r--r--CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8cee2f3..e869439 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,7 +58,6 @@ elseif (FLAVOUR_GTK2)
)
endif()
-
if(ENABLE_TESTS)
set(DEPS ${DEPS} dbus-1>=1.12 dbus-glib-1>=0.82)
endif()
@@ -66,6 +65,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)