diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d20b64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pyc diff --git a/CMake/FindSphinx.cmake b/CMake/FindSphinx.cmake index 3ad9a19..1e01b65 100644 --- a/CMake/FindSphinx.cmake +++ b/CMake/FindSphinx.cmake @@ -2,6 +2,10 @@ # - This module looks for Sphinx # Find the Sphinx documentation generator # +# Optional inputs: +# - environment variable SPHINX_ROOT to hint installed location +# - CMake variable SPHINX_ROOT to hint installed location +# # This modules defines # SPHINX_EXECUTABLE # SPHINX_FOUND @@ -12,6 +16,8 @@ find_program(SPHINX_EXECUTABLE /usr/bin /usr/local/bin /opt/local/bin + $ENV{SPHINX_ROOT}/bin + ${SPHINX_ROOT}/bin DOC "Sphinx documentation generator" ) @@ -28,7 +34,9 @@ if(NOT SPHINX_EXECUTABLE) PATHS /usr/bin /usr/local/bin - /opt/loca/bin + /opt/local/bin + $ENV{SPHINX_ROOT}/bin + ${SPHINX_ROOT}/bin DOC "Sphinx documentation generator" ) endforeach()