diff --git a/cmake/modules/UseDoxygen.cmake b/cmake/modules/UseDoxygen.cmake index b5c7de1..5558416 100644 --- a/cmake/modules/UseDoxygen.cmake +++ b/cmake/modules/UseDoxygen.cmake @@ -91,8 +91,7 @@ if(DOXYGEN_FOUND AND DOXYFILE_IN) configure_file(${DOXYFILE_IN} Doxyfile ESCAPE_QUOTES IMMEDIATE @ONLY) - get_target_property(DOC_TARGET doc TYPE) - if(NOT DOC_TARGET) + if(NOT TARGET doc) add_custom_target(doc) endif()