Skip to content

Commit 3df694d

Browse files
committed
Add installation rule for docs
1 parent efaa917 commit 3df694d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ if (DOXYGEN_FOUND)
8787
ALL
8888
COMMENT "Generating docs"
8989
)
90-
install(DIRECTORY ${DOXYGEN_OUTPUT_DIR}/html DESTINATION share/doc)
90+
91+
# See https://cmake.org/cmake/help/latest/module/FindDoxygen.html#variable:DOXYGEN_OUTPUT_DIRECTORY
92+
install(
93+
DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html
94+
DESTINATION share/doc
95+
COMPONENT Docs)
9196
else()
9297
message(FATAL_ERROR "Doxygen needs to be installed to generate the documentation")
9398
endif()

0 commit comments

Comments
 (0)