Skip to content

Commit

Permalink
Only create man pages on Unix
Browse files Browse the repository at this point in the history
  • Loading branch information
jwrober committed Jul 8, 2023
1 parent 67c725a commit 9281841
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@ if(SPHINX_FOUND)
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating documentation with Sphinx")

add_custom_target(man-pages ALL
# We only create man pages on Unix
if(UNIX AND NOT APPLE)
add_custom_target(man-pages ALL
COMMAND
${SPHINX_EXECUTABLE} -b man ${SPHINX_SOURCE} ${SPHINX_MAN}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating manual pages with Sphinx")
endif()
else()
message(STATUS "Sphinx NOT Found.")
set(FREECIV_ENABLE_MANPAGES FALSE)
endif()

0 comments on commit 9281841

Please sign in to comment.