From 928184172aacb966e2bd3c92ef181fc8de1bb3f9 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 8 Jul 2023 12:43:10 -0500 Subject: [PATCH] Only create man pages on Unix --- docs/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index b7d8ce0620..0c901e5163 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -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()