Make sure the output directory is created before we run asciidoc

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-06-27 15:28:27 -07:00
parent feb15a5498
commit 9f86468c00

View file

@ -517,11 +517,19 @@ if(NOT insource)
ln -s ${CMAKE_SOURCE_DIR}/Documentation/images ${CMAKE_BINARY_DIR}/Documentation/images
)
endif()
else()
if(NOT NO_DOCS)
add_custom_target(
documentationLink ALL
)
endif()
endif()
if(NOT NO_DOCS)
add_custom_target(
documentation ALL
COMMAND
make -C ${CMAKE_SOURCE_DIR}/Documentation OUT=${CMAKE_BINARY_DIR}/Documentation/ doc
DEPENDS documentationLink
)
endif()