summaryrefslogtreecommitdiff
path: root/CMake/FindPandoc.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'CMake/FindPandoc.cmake')
-rw-r--r--CMake/FindPandoc.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/CMake/FindPandoc.cmake b/CMake/FindPandoc.cmake
new file mode 100644
index 0000000..1a076ff
--- /dev/null
+++ b/CMake/FindPandoc.cmake
@@ -0,0 +1,18 @@
+# This module looks for Pandoc, and sets PANDOC_EXECUTABLE to the
+# location of its binary.
+#
+# It respects the variable Pandoc_FIND_QUIETLY
+
+include(FindPackageHandleStandardArgs)
+
+if(DEFINED PANDOC_EXECUTABLE)
+ set(Pandoc_FIND_QUIETLY TRUE)
+endif()
+
+find_program(PANDOC_EXECUTABLE
+ NAMES pandoc
+ DOC "Pandoc - a universal document converter")
+
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(Pandoc REQUIRED_VARS PANDOC_EXECUTABLE)
+
+mark_as_advanced(PANDOC_EXECUTABLE) \ No newline at end of file