Skip to content

Commit

Permalink
Don't add a literate testing subdirectory for documents on which LitR…
Browse files Browse the repository at this point in the history
…e fails

Swift SVN r4510
  • Loading branch information
Dave Abrahams committed Mar 28, 2013
1 parent 50835b8 commit 01cd7ed
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -66,9 +66,13 @@ if(LITRE_EXECUTABLE)
--traceback
--report=severe
${CMAKE_CURRENT_SOURCE_DIR}/${rst}
RESULT_VARIABLE litre_failed
)
# Make that directory part of the build
add_subdirectory(${test_dir} ${test_dir}/build)

if(NOT litre_failed)
# Make that directory part of the build
add_subdirectory(${test_dir} ${test_dir}/build)
endif()
endforeach()
else()
message(WARNING "LitRe not found; code examples won't be tested.")

0 comments on commit 01cd7ed

Please sign in to comment.