Skip to content

Commit 69ce755

Browse files
authored
Add ${PYTHON_EXECUTABLE} for "Generating doctests" (#4496)
On win32, the ${PYTHON_EXECUTABLE} should be specified, otherwise the python script can not be executed properly. JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
1 parent 9bc0f2f commit 69ce755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit-doc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ endif()
8585
# Add custom command to run doctest generator if any of the MarkDown sources
8686
# changes.
8787
add_custom_command(
88-
COMMAND ${GEN_DOCTEST} -d ${CMAKE_CURRENT_BINARY_DIR} ${DOC_FILES}
88+
COMMAND ${PYTHON_EXECUTABLE} ${GEN_DOCTEST} -d ${CMAKE_CURRENT_BINARY_DIR} ${DOC_FILES}
8989
DEPENDS ${GEN_DOCTEST} ${DOC_FILES}
9090
OUTPUT ${DOCTEST_COMPILE} ${DOCTEST_LINK} ${DOCTEST_RUN}
9191
COMMENT "Generating doctests"

0 commit comments

Comments
 (0)