Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add pandoc dependency for building the cookbook in cmake
- Loading branch information
Showing
3 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Midified from https://llvm.org/svn/llvm-project/llvm/trunk/cmake/modules/FindSphinx.cmake | ||
# under "UIUC" BSD-Style license. | ||
# CMake find_package() Module for pandoc markdown converter, http://pandoc.org/ | ||
# | ||
# Example usage: | ||
# | ||
# find_package(Pandoc) | ||
# | ||
# If successful the following variables will be defined | ||
# PANDOC_FOUND | ||
# PANDOC_EXECUTABLE | ||
|
||
find_program(PANDOC_EXECUTABLE | ||
NAMES pandoc | ||
PATH /usr/local/bin | ||
DOC "Path to pandoc executable") | ||
|
||
# Handle REQUIRED and QUIET arguments | ||
# this will also set PANDOC_FOUND to true if PANDOC_EXECUTABLE exists | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Pandoc | ||
"Failed to locate pandoc executable" | ||
PANDOC_EXECUTABLE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters