Skip to content

Commit

Permalink
try to fix doxygen install
Browse files Browse the repository at this point in the history
  • Loading branch information
goatshriek committed Jun 17, 2023
1 parent ef70fd1 commit abad1b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,12 @@ if(DOXYGEN_FOUND)
${EXAMPLE_SOURCES}
${PROJECT_SOURCE_DIR}/include/stumpless.h
${PROJECT_BINARY_DIR}/include/stumpless/config.h
VERBATIM
)

add_custom_target(docs DEPENDS ${PROJECT_BINARY_DIR}/docs/man/man3/config.h.3)

set(INCLUDE_MANPAGES_IN_INSTALL INSTALL_MANPAGES)
set(INCLUDE_MANPAGES_IN_INSTALL ${INSTALL_MANPAGES})
else()
if(INSTALL_MANPAGES)
message("doxygen is required to generate and install manpages")
Expand Down Expand Up @@ -1039,6 +1040,9 @@ endif()

# installation of manpages if enabled
if(INCLUDE_MANPAGES_IN_INSTALL)
# build the docs so that they are available for install
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR} --target docs)")

install(FILES
${PROJECT_BINARY_DIR}/docs/man/man3/config.h.3
RENAME stumpless_config.h.3
Expand Down
2 changes: 1 addition & 1 deletion tools/cmake/cpack.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ string(CONCAT CPACK_PACKAGE_DESCRIPTION
"https://goatshriek.github.io/stumpless/ for more info and documentation."
)

set(CPACK_PACKAGE_CONTACT "Joel Anderson <joelanderson333@gmail.com>")
set(CPACK_PACKAGE_CONTACT "Joel Anderson <joel@goatshriek.com>")
set(CPACK_PACKAGE_VENDOR "Goatshriek Software")
set(CPACK_PACKAGE_RELOCATABLE ON)

Expand Down

0 comments on commit abad1b9

Please sign in to comment.