Skip to content

Commit

Permalink
maint: updating doc target to work with cmake 3.31+
Browse files Browse the repository at this point in the history
  • Loading branch information
andrsd committed Jan 2, 2025
1 parent a98b923 commit a0c55df
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ if(DOXYGEN_FOUND)
configure_file(Doxyfile.in Doxyfile)
configure_file(conf.py.in conf.py)

add_custom_target(doc DEPENDS ${PROJECT_BINARY_DIR}/docs/html/index.html)
add_custom_target(doc
DEPENDS ${PROJECT_BINARY_DIR}/docs/html/index.html
COMMENT
"Open ${PROJECT_BINARY_DIR}/docs/html/index.html in your browser to view the documentation."
)

file(GLOB_RECURSE RST_FILES ${PROJECT_SOURCE_DIR}/docs/*.rst)
file(GLOB_RECURSE EXODUSIICPP_HEADER_FILES ${PROJECT_SOURCE_DIR}/include/*.h)
Expand All @@ -38,14 +42,6 @@ if(DOXYGEN_FOUND)
${EXODUSIICPP_HEADER_FILES}
)

add_custom_command(
TARGET doc
POST_BUILD
COMMAND ;
COMMENT
"Open ${PROJECT_BINARY_DIR}/docs/html/index.html in your browser to view the documentation."
)

endif()

endif()

0 comments on commit a0c55df

Please sign in to comment.