Skip to content

Commit 396ed0b

Browse files
committed
Always throw --debug with FORD, no reason not to
Otherwise, you won't get a traceback to debug issues, and AFAICT, this has no downside...
1 parent 660abd8 commit 396ed0b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ if ( NOT SKIP_DOC_GEN )
169169
message ( STATUS "Running FORD to dynamically compute documentation outputs, this could take a while..." )
170170
execute_process ( COMMAND ${CMAKE_COMMAND} -E remove_directory ${DOC_DIR}
171171
COMMAND ${CMAKE_COMMAND} -E make_directory ${DOC_DIR}
172-
COMMAND "${FORD}" -q ${MACRO_FLAG} -d "${PROJ_DIR}" -o "${DOC_DIR}" -p "${PAGE_DIR}" "${FORD_PROJECT_FILE}" OUTPUT_QUIET )
172+
COMMAND "${FORD}" --debug -q ${MACRO_FLAG} -d "${PROJ_DIR}" -o "${DOC_DIR}" -p "${PAGE_DIR}" "${FORD_PROJECT_FILE}" OUTPUT_QUIET )
173173
else ()
174174
message ( STATUS "Re-using cached FORD outputs, rather than regenerating them" )
175175
endif ()
@@ -190,7 +190,7 @@ if ( NOT SKIP_DOC_GEN )
190190
list ( APPEND FORD_DEPENDS "${DOC_SRC_FILE}" )
191191
endforeach ()
192192
add_custom_command ( OUTPUT ${FORD_OUTPUTS_CACHED}
193-
COMMAND "${FORD}" ${MACRO_FLAG} -d "${PROJ_DIR}" -o "${DOC_DIR}" -p "${CMAKE_SOURCE_DIR}/pages" "${FORD_PROJECT_FILE}"
193+
COMMAND "${FORD}" --debug ${MACRO_FLAG} -d "${PROJ_DIR}" -o "${DOC_DIR}" -p "${CMAKE_SOURCE_DIR}/pages" "${FORD_PROJECT_FILE}"
194194
MAIN_DEPENDENCY "${FORD_PROJECT_FILE}"
195195
DEPENDS ${FORD_DEPENDS}
196196
COMMENT "Building HTML documentation for ${CMAKE_PROJECT_NAME} using FORD" )

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ echo ""
343343
if [[ $JF_SKIP_DOCS != [yY]* ]]; then
344344
if hash ford 2>/dev/null; then
345345
echo "Building documentation..."
346-
[[ $TRY_UNICODE = [yY]* ]] && MACRO_FLAG="-m USE_UCS4"
347-
ford $MACRO_FLAG -p $PAGESDIR $FORDMD
346+
[[ $TRY_UNICODE = [yY]* ]] && MACRO_FLAG=("-m" "USE_UCS4")
347+
ford --debug "${MACRO_FLAG[@]}" -p "$PAGESDIR" "$FORDMD"
348348
else
349349
echo "FORD not found! Install using: sudo pip install ford"
350350
fi

0 commit comments

Comments
 (0)