diff --git a/CMLibDoxygen.cmake b/CMLibDoxygen.cmake index a59a12a..95816a6 100644 --- a/CMLibDoxygen.cmake +++ b/CMLibDoxygen.cmake @@ -14,7 +14,7 @@ function(add_doxygen_target) configure_file(${_DOXYGEN_IN} ${_DOXYGEN_OUT} @ONLY) message("Doxygen build started") - add_custom_target(${_DOXYGEN_TARGET} VERBATIM + add_custom_target(${_DOXYGEN_TARGET_NAME} VERBATIM COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Generating API documentation with Doxygen"