Skip to content

Commit

Permalink
Fix manpage installation
Browse files Browse the repository at this point in the history
- DESTINATION share/man/man6/ja2.6 is incorrect, it creates named
  directory instead of renaming the file. Use RENAME instead
- Introduce condition for FreeBSD-specific manpage directory. Other
  *BSDs may use it as well
  • Loading branch information
AMDmi3 committed Sep 26, 2016
1 parent aeecb4f commit f2c78d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,11 @@ if (UNIX AND NOT MINGW AND NOT APPLE)
FILES _build/icons/logo.svg
RENAME ja2-stracciatella.svg
DESTINATION share/icons/hicolor/scalable/apps)
install(FILES ja2_manpage DESTINATION share/man/man6/ja2.6)
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|DragonFly")
install(FILES ja2_manpage DESTINATION man/man6 RENAME ja2.6)
else()
install(FILES ja2_manpage DESTINATION share/man/man6 RENAME ja2.6)
endif()
else()
install(TARGETS ${BINARY} RUNTIME DESTINATION .)
install(DIRECTORY externalized mods _unittests DESTINATION .)
Expand Down

0 comments on commit f2c78d4

Please sign in to comment.