File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ function(BuildBook LANGUAGE SOURCE_DIR TARGET_DIR)
66 message (WARNING "Skipping '${LANGUAGE} ' – SUMMARY.md not found at ${SOURCE_DIR} " )
77 return ()
88 endif ()
9-
9+
1010 if (NOT EXISTS "${SOURCE_DIR} /book.toml" )
1111 message (WARNING "Skipping '${LANGUAGE} ' – book.toml not found at ${SOURCE_DIR} " )
1212 return ()
@@ -16,10 +16,11 @@ function(BuildBook LANGUAGE SOURCE_DIR TARGET_DIR)
1616 execute_process (
1717 COMMAND mdbook build -d ${TARGET_DIR}
1818 WORKING_DIRECTORY ${SOURCE_DIR}
19+ COMMAND_ERROR_IS_FATAL ANY
1920 )
2021endfunction ()
2122
22- # Copy the theme folder
23+ # Copy the theme folder
2324file (COPY "${CMAKE_CURRENT_SOURCE_DIR} /theme" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR} /translations" )
2425
2526BuildBook("en" "${CMAKE_CURRENT_SOURCE_DIR} " "${CMAKE_CURRENT_SOURCE_DIR} /book" )
You can’t perform that action at this time.
0 commit comments