Skip to content

Commit f2c78d4

Browse files
committed
Fix manpage installation
- 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
1 parent aeecb4f commit f2c78d4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,11 @@ if (UNIX AND NOT MINGW AND NOT APPLE)
185185
FILES _build/icons/logo.svg
186186
RENAME ja2-stracciatella.svg
187187
DESTINATION share/icons/hicolor/scalable/apps)
188-
install(FILES ja2_manpage DESTINATION share/man/man6/ja2.6)
188+
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|DragonFly")
189+
install(FILES ja2_manpage DESTINATION man/man6 RENAME ja2.6)
190+
else()
191+
install(FILES ja2_manpage DESTINATION share/man/man6 RENAME ja2.6)
192+
endif()
189193
else()
190194
install(TARGETS ${BINARY} RUNTIME DESTINATION .)
191195
install(DIRECTORY externalized mods _unittests DESTINATION .)

0 commit comments

Comments
 (0)