Sphinx build fix (#291)

This was missed in #262. The "build_doc" target has also been renamed to
"build_doc_ros" in order to avoid conflict with the "build_doc" target
in libcartographer, in case both are being built in the same CMake
project.
master
Juraj Oršulić 2017-03-30 10:21:03 +02:00 committed by Damon Kohler
parent a2b6dd7510
commit 27db0e9566
1 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@ project(cartographer_ros_docs)
find_package(Sphinx) find_package(Sphinx)
if(SPHINX_FOUND) if(SPHINX_FOUND)
set(OUTPUT_DIR "${CMAKE_BINARY_DIR}/docs/html") set(OUTPUT_DIR "${PROJECT_BINARY_DIR}/docs/html")
add_custom_target(build_doc ALL add_custom_target(build_doc_ros ALL
${SPHINX_EXECUTABLE} -b html ${SPHINX_EXECUTABLE} -b html
${CMAKE_CURRENT_SOURCE_DIR}/source ${CMAKE_CURRENT_SOURCE_DIR}/source
${CMAKE_CURRENT_BINARY_DIR}/html ${CMAKE_CURRENT_BINARY_DIR}/html