summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2010-12-18 15:39:50 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2010-12-18 17:47:37 +0100
commitb44b3e6a544c239e7581c72e73b4c5b089ffcff0 (patch)
tree1baa8e23978888aacaea219f46d9f8a1c2e54b15 /cmake
parent9178fb8d812f788a41b06a2c3550bf212cc0b9cf (diff)
downloadlogdiag-b44b3e6a544c239e7581c72e73b4c5b089ffcff0.tar.gz
logdiag-b44b3e6a544c239e7581c72e73b4c5b089ffcff0.tar.xz
logdiag-b44b3e6a544c239e7581c72e73b4c5b089ffcff0.zip
Documentation maintenance.
* Do not require gtk-doc to be installed. * Use FindPackageHandleStandardArgs in FindGtkDoc.cmake. * Fix installation (wrong source path). * Don't install neither the documentation nor the desktop file on Windows.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindGtkDoc.cmake11
1 files changed, 2 insertions, 9 deletions
diff --git a/cmake/FindGtkDoc.cmake b/cmake/FindGtkDoc.cmake
index 97d849b..b526190 100644
--- a/cmake/FindGtkDoc.cmake
+++ b/cmake/FindGtkDoc.cmake
@@ -104,15 +104,8 @@ find_program (GTK_DOC_MKDB_EXECUTABLE "gtkdoc-mkdb")
find_program (GTK_DOC_MKHTML_EXECUTABLE "gtkdoc-mkhtml")
find_program (GTK_DOC_FIXXREF_EXECUTABLE "gtkdoc-fixxref")
-set (GTK_DOC_FOUND TRUE)
-if (NOT GTK_DOC_SCAN_EXECUTABLE)
- set (GTK_DOC_FOUND FALSE)
-endif (NOT GTK_DOC_SCAN_EXECUTABLE)
-
-if (GtkDoc_FIND_REQUIRED AND NOT GTK_DOC_FOUND)
- message (FATAL_ERROR "gtk-doc NOT found")
-endif (GtkDoc_FIND_REQUIRED AND NOT GTK_DOC_FOUND)
-
+include (FindPackageHandleStandardArgs)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS (GTK_DOC DEFAULT_MSG GTK_DOC_SCAN_EXECUTABLE)
include (ProcessArguments)