Skip to content

Commit

Permalink
Add if()'s to install for man pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jwrober committed Jul 8, 2023
1 parent 3ffc3f6 commit 5102c27
Showing 1 changed file with 28 additions and 22 deletions.
50 changes: 28 additions & 22 deletions cmake/FreecivInstall.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,14 @@ if(UNIX AND NOT APPLE)
COMPONENT freeciv21
)

install(
FILES
${CMAKE_BINARY_DIR}/man/freeciv21-client.6
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/man/man6
COMPONENT freeciv21
)
if(SPHINX_FOUND)
install(
FILES
${CMAKE_BINARY_DIR}/man/freeciv21-client.6
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/man/man6
COMPONENT freeciv21
)
endif()
endif(FREECIV_ENABLE_CLIENT)

if(FREECIV_ENABLE_SERVER)
Expand All @@ -203,15 +205,17 @@ if(UNIX AND NOT APPLE)
COMPONENT freeciv21
)

install(
FILES
${CMAKE_BINARY_DIR}/man/freeciv21-server.6
${CMAKE_BINARY_DIR}/man/freeciv21-game-manual.6
${CMAKE_BINARY_DIR}/man/freeciv21-manual.6
${CMAKE_BINARY_DIR}/man/freeciv21-ruleup.6
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/man/man6
COMPONENT freeciv21
)
if(SPHINX_FOUND)
install(
FILES
${CMAKE_BINARY_DIR}/man/freeciv21-server.6
${CMAKE_BINARY_DIR}/man/freeciv21-game-manual.6
${CMAKE_BINARY_DIR}/man/freeciv21-manual.6
${CMAKE_BINARY_DIR}/man/freeciv21-ruleup.6
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/man/man6
COMPONENT freeciv21
)
endif()
endif(FREECIV_ENABLE_SERVER)

if(FREECIV_ENABLE_FCMP_QT)
Expand All @@ -231,13 +235,15 @@ if(UNIX AND NOT APPLE)
COMPONENT freeciv21
)

install(
FILES
${CMAKE_BINARY_DIR}/man/freeciv21-modpack-qt.6
${CMAKE_BINARY_DIR}/man/freeciv21-modpack.6
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/man/man6
COMPONENT freeciv21
)
if(SPHINX_FOUND)
install(
FILES
${CMAKE_BINARY_DIR}/man/freeciv21-modpack-qt.6
${CMAKE_BINARY_DIR}/man/freeciv21-modpack.6
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/man/man6
COMPONENT freeciv21
)
endif()
endif(FREECIV_ENABLE_FCMP_QT)

if(FREECIV_ENABLE_RULEDIT)
Expand Down

0 comments on commit 5102c27

Please sign in to comment.