diff --git a/CMakeLists.txt b/CMakeLists.txt index 40a4f20..6915aaf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -257,7 +257,7 @@ endif() if(NOWIDE_BUILD_DOC_HTML OR NOWIDE_BUILD_DOC_TEX) configure_file("Doxyfile.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @ONLY) - add_custom_target(doc ALL "${DOXYGEN_EXECUTABLE}" Doxyfile + add_custom_target(doc "${DOXYGEN_EXECUTABLE}" Doxyfile WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Generating API Documentation" VERBATIM) endif()