cmake: use sphinx-build-3 as an alternative
authorKefu Chai <kchai@redhat.com>
Thu, 7 Feb 2019 07:33:11 +0000 (15:33 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 7 Feb 2019 07:35:16 +0000 (15:35 +0800)
on fc30, there is no reason to stick with sphinx-build and ignore
sphinx-build-3!

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt

index df8e6f95090d37743cd60f62b366bbb5ff07491c..78dcfebb9be790f267b56772b36fa62435053c54 100644 (file)
@@ -58,7 +58,7 @@ endif(WITH_CCACHE)
 option(WITH_MANPAGE "Build man pages." ON)
 if(WITH_MANPAGE)
   find_program(SPHINX_BUILD
-    sphinx-build)
+    NAMES sphinx-build sphinx-build-3)
   if(NOT SPHINX_BUILD)
     message(FATAL_ERROR "Can't find sphinx-build.")
   endif(NOT SPHINX_BUILD)