Skip to content

Commit

Permalink
DISPATCH-851: Correct the cmake logic for adding book targets based o…
Browse files Browse the repository at this point in the history
…n the presence of asciidoctor; add asciidoctor to the documented deps and CI config
  • Loading branch information
ssorj committed Jun 28, 2018
1 parent 723b735 commit 0f8fb60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -38,6 +38,7 @@ addons:
- maven
# documentation
- asciidoc
- asciidoctor
- dblatex
# unit test requirement
- python-unittest2
Expand Down
1 change: 1 addition & 0 deletions README
Expand Up @@ -19,6 +19,7 @@ packages installed:
- cyrus-sasl-plain
- cyrus-sasl-devel
- asciidoc (for building docs)
- asciidoctor (for building docs)
- python-unittest2 (python2-unittest2 on Fedora) (we use unittest2 for running python tests)

Dispatch will not build on Windows.
Expand Down
6 changes: 3 additions & 3 deletions docs/books/CMakeLists.txt
Expand Up @@ -27,7 +27,7 @@ set (

if (ASCIIDOCTOR_EXE)
# Don't follow symlinks and don't warn about it
cmake_policy(SET CMP0009 NEW)
cmake_policy (SET CMP0009 NEW)
file (GLOB_RECURSE png_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.png)

foreach (file ${png_files})
Expand All @@ -46,9 +46,9 @@ if (ASCIIDOCTOR_EXE)
)
endforeach ()

add_custom_target (books DEPENDS ${books})
add_dependencies (docs books)
else ()
message (STATUS "AsciiDoctor not found: Not generating books")
endif ()

add_custom_target (books DEPENDS ${books})
add_dependencies (docs books)

0 comments on commit 0f8fb60

Please sign in to comment.