Got broken in
29616660 but somehow wasn't a problem in the docs build
on the dedicated slave for that.
Refs #2615
Change-Id: I407383bd0342decae56e4c60202ffbf190e8bb1b
if (Sphinx_FIND_QUIETLY)
set(_find_deps_options QUIET)
endif()
+
+# Check if pygments module is available via the Unix error code (ie. 0
+# for success)
execute_process(COMMAND "${PYTHON_EXECUTABLE}" "-c"
"import pygments"
- RESULT_VARIABLE _pygments_status
- ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
-if (_pygments_status)
+ RESULT_VARIABLE _pygments_status)
+if (_pygments_status EQUAL 0)
set(Sphinx_pygments_FOUND 1)
endif()