Skip to content

Commit 05c4347

Browse files
authored
Merge pull request #3184 from eseiler/fix/doxygen_tag_file
[FIX] SEQAN3_DOXYGEN_STD_TAGFILE
2 parents 140112e + 6395dfb commit 05c4347

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/documentation/seqan3-doxygen.cmake

+6-2
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,19 @@ if (NOT EXISTS "${SEQAN3_DOXYGEN_STD_TAGFILE}" OR SEQAN3_DOXYGEN_STD_TAGFILE STR
7070
DOWNLOAD_NAME "html-book.tar.xz"
7171
DOWNLOAD_NO_EXTRACT YES
7272
BINARY_DIR "${PROJECT_BINARY_DIR}"
73-
BUILD_BYPRODUCTS "${SEQAN3_DOXYGEN_STD_TAGFILE}"
73+
BUILD_BYPRODUCTS "${SEQAN3_DEFAULT_DOXYGEN_STD_TAGFILE}"
7474
CONFIGURE_COMMAND /bin/sh -c "xzcat html-book.tar.xz | tar -xf - cppreference-doxygen-web.tag.xml"
7575
BUILD_COMMAND rm "html-book.tar.xz"
7676
INSTALL_COMMAND "")
7777
else ()
7878
message (STATUS "Copying existing tag file: ${SEQAN3_DOXYGEN_STD_TAGFILE}")
7979
# Copy tag file such that it is present in the built documentation. This is useful if the documentation is
8080
# subsequently deployed to a server.
81-
configure_file ("${SEQAN3_DOXYGEN_STD_TAGFILE}" "${SEQAN3_DEFAULT_DOXYGEN_STD_TAGFILE}" COPYONLY)
81+
add_custom_target (download-cppreference-doxygen-web-tag)
82+
add_custom_command (TARGET download-cppreference-doxygen-web-tag
83+
COMMAND ${CMAKE_COMMAND} -E copy "${SEQAN3_DOXYGEN_STD_TAGFILE}"
84+
"${SEQAN3_DEFAULT_DOXYGEN_STD_TAGFILE}"
85+
BYPRODUCTS "${SEQAN3_DEFAULT_DOXYGEN_STD_TAGFILE}")
8286
set (SEQAN3_DOXYGEN_STD_TAGFILE "${SEQAN3_DEFAULT_DOXYGEN_STD_TAGFILE}")
8387
endif ()
8488

0 commit comments

Comments
 (0)