diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-10-23 23:35:30 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-10-24 19:10:12 +0200 |
commit | aaac9d8c09a63ce7aa255020f7036659263e3584 (patch) | |
tree | 5dd1638d15370f768a685129d6da066c6a32257b | |
parent | 96732334e4df02eb4c704844e69a18a00acd8398 (diff) | |
download | libayatana-appindicator-aaac9d8c09a63ce7aa255020f7036659263e3584.tar.gz libayatana-appindicator-aaac9d8c09a63ce7aa255020f7036659263e3584.tar.bz2 libayatana-appindicator-aaac9d8c09a63ce7aa255020f7036659263e3584.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.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8cee2f3..ba99ea2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,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) |