Skip to content

Commit

Permalink
Merge pull request #3166 from eisenhauer/ENETupstream
Browse files Browse the repository at this point in the history
ENET upstream
  • Loading branch information
eisenhauer authored Apr 16, 2022
2 parents 6a2d579 + c4f199a commit 4aa67ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion thirdparty/enet/enet/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ install(EXPORT enet-targets NAMESPACE enet::

# Build documentation
find_package(Doxygen)
if(Doxygen_FOUND)
cmake_dependent_option(BUILD_DOCS
"Build documentation." OFF
"Doxygen_FOUND" OFF)
if(BUILD_DOCS)
doxygen_add_docs(enet_docs "${CMAKE_CURRENT_SOURCE_DIR}" ALL)
install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html" DESTINATION "${CMAKE_INSTALL_DOCDIR}" COMPONENT ${ENET_DOC_COMPONENT})
endif()

0 comments on commit 4aa67ed

Please sign in to comment.