Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

FindSphinx.cmake 984 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  1. #
  2. # $Id$
  3. #
  4. # Locate Sphinx documentation generator
  5. #
  6. # This module accepts the following environment variables:
  7. #
  8. # SPHINX_DIR or SPHINX_ROOT - Specify the location of Sphinx
  9. #
  10. # This module defines the following CMake variables:
  11. #
  12. # SPHINX_FOUND - True if sphinx-build is found
  13. # SPHINX_EXECUTABLE - A variable pointing to sphinx-build
  14. if (DEFINED SPHINX_ROOT AND NOT SPHINX_ROOT)
  15. set (SPHINX_EXECUTABLE "" CACHE INTERNAL "")
  16. return ()
  17. endif (DEFINED SPHINX_ROOT AND NOT SPHINX_ROOT)
  18. find_program (SPHINX_EXECUTABLE sphinx-build
  19. HINTS
  20. ${SPHINX_DIR}
  21. ${SPHINX_ROOT}
  22. $ENV{SPHINX_DIR}
  23. $ENV{SPHINX_ROOT}
  24. PATH_SUFFIXES bin
  25. PATHS
  26. /sw # Fink
  27. /opt/local # DarwinPorts
  28. /opt/csw # Blastwave
  29. /opt
  30. /usr/local
  31. DOC "Sphinx documentation generator"
  32. )
  33. include (FindPackageHandleStandardArgs)
  34. find_package_handle_standard_args (Sphinx DEFAULT_MSG SPHINX_EXECUTABLE)
  35. mark_as_advanced (SPHINX_EXECUTABLE)
  36. # vim: textwidth=78 noexpandtab tabstop=2 softtabstop=2 shiftwidth=2
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...