Skip to content

Commit

Permalink
Create FREECIV_ENABLE_MANPAGES variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jwrober committed Jul 8, 2023
1 parent 5102c27 commit 67c725a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/FreecivInstall.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ if(UNIX AND NOT APPLE)
COMPONENT freeciv21
)

if(SPHINX_FOUND)
if(FREECIV_ENABLE_MANPAGES)
install(
FILES
${CMAKE_BINARY_DIR}/man/freeciv21-client.6
Expand All @@ -205,7 +205,7 @@ if(UNIX AND NOT APPLE)
COMPONENT freeciv21
)

if(SPHINX_FOUND)
if(FREECIV_ENABLE_MANPAGES)
install(
FILES
${CMAKE_BINARY_DIR}/man/freeciv21-server.6
Expand Down Expand Up @@ -235,7 +235,7 @@ if(UNIX AND NOT APPLE)
COMPONENT freeciv21
)

if(SPHINX_FOUND)
if(FREECIV_ENABLE_MANPAGES)
install(
FILES
${CMAKE_BINARY_DIR}/man/freeciv21-modpack-qt.6
Expand Down
2 changes: 2 additions & 0 deletions docs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# CMakeLists for Freeciv21 Docs

set(FREECIV_ENABLE_MANPAGES FALSE)
find_package(Sphinx QUIET)

if(SPHINX_FOUND)
message(STATUS "Sphinx Found, configuring.")
set(FREECIV_ENABLE_MANPAGES TRUE)
set(SPHINX_SOURCE ${CMAKE_SOURCE_DIR}/docs)
set(SPHINX_BUILD ${CMAKE_CURRENT_BINARY_DIR})
set(SPHINX_MAN ${CMAKE_CURRENT_BINARY_DIR}/man)
Expand Down

0 comments on commit 67c725a

Please sign in to comment.