Skip to content

Commit 6fe3347

Browse files
committed
[doc] Fail the configuration when Doxygen or doxygen2docstring.py fails: updated PR
1 parent 44d9b6e commit 6fe3347

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎doc/CMakeLists.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
RESULT_VARIABLE DOXYGEN_RESULT
4242
)
4343
if(NOT DOXYGEN_RESULT EQUAL 0)
44-
if(DOXYGEN_RESULT STREQUAL "Segmentation fault" AND EXISTS "${CMAKE_BINARY_DIR}/doc/api/xml/index.xml")
44+
if(EXISTS "${CMAKE_BINARY_DIR}/doc/api/xml/index.xml")
4545
message(WARNING "Doxygen exited with '${DOXYGEN_RESULT}' but generated XML output. Continuing so Python docstrings can still be generated.")
4646
else()
4747
message(FATAL_ERROR "Doxygen failed to generate the API documentation (exit code ${DOXYGEN_RESULT}), which is required for the Python docstrings. Doxygen errors: ${DOXYGEN_ERROR}")

0 commit comments

Comments
 (0)