diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index 6e2e221..ec58eef 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -18,8 +18,8 @@ project(cartographer_ros_docs) find_package(Sphinx) if(SPHINX_FOUND) - set(OUTPUT_DIR "${CMAKE_BINARY_DIR}/docs/html") - add_custom_target(build_doc ALL + set(OUTPUT_DIR "${PROJECT_BINARY_DIR}/docs/html") + add_custom_target(build_doc_ros ALL ${SPHINX_EXECUTABLE} -b html ${CMAKE_CURRENT_SOURCE_DIR}/source ${CMAKE_CURRENT_BINARY_DIR}/html