From 340b524348eabc0fa750232305000586e5b8646f Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 15 Aug 2022 17:49:44 -0400 Subject: [PATCH] Invoke build.py with cmake-found python In the Buildmaster GCC 4.8 image, `/usr/bin/env python3` appears to find the system Python (3.4) as opposed to the newer Python (3.6) we install separately. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c278c4542..60bffa758 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -493,7 +493,7 @@ if(BUILD_DOCS) "${CMAKE_BINARY_DIR}/docs/text" ) add_custom_command(OUTPUT ${SPHINX_OUTPUT} - COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/docs/build.py" + COMMAND "${Python3_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/docs/build.py" html text --sphinx="${SPHINX_EXECUTABLE}" -- -q DEPENDS ${SPHINX_DEPS} COMMENT "Building documentation with Sphinx"