summaryrefslogtreecommitdiff
path: root/cmake/InstallAndPackage.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/InstallAndPackage.cmake')
-rw-r--r--cmake/InstallAndPackage.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/InstallAndPackage.cmake b/cmake/InstallAndPackage.cmake
index 6292ecf5a..c8cd6b44a 100644
--- a/cmake/InstallAndPackage.cmake
+++ b/cmake/InstallAndPackage.cmake
@@ -3,7 +3,7 @@ include(GNUInstallDirs)
# If requested, use FHS layout; otherwise fall back to a flat layout.
if (OPTION_INSTALL_FHS)
set(BINARY_DESTINATION_DIR "${CMAKE_INSTALL_BINDIR}")
- set(DATA_DESTINATION_DIR "${CMAKE_INSTALL_DATADIR}/openttd")
+ set(DATA_DESTINATION_DIR "${CMAKE_INSTALL_DATADIR}/${BINARY_NAME}")
set(DOCS_DESTINATION_DIR "${CMAKE_INSTALL_DOCDIR}")
set(MAN_DESTINATION_DIR "${CMAKE_INSTALL_MANDIR}")
else (OPTION_INSTALL_FHS)
@@ -41,7 +41,7 @@ install(FILES
# file with little context to what it is.
if (OPTION_INSTALL_FHS)
set(MAN_SOURCE_FILE ${CMAKE_SOURCE_DIR}/docs/openttd.6)
- set(MAN_BINARY_FILE ${CMAKE_BINARY_DIR}/docs/openttd.6)
+ set(MAN_BINARY_FILE ${CMAKE_BINARY_DIR}/docs/${BINARY_NAME}.6)
install(CODE
"
execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${MAN_SOURCE_FILE} ${MAN_BINARY_FILE})