You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 241d7f6f..9cd8eff8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -637,7 +637,7 @@ if (NOT APPLE AND UNIX)
if (GAME_ENABLED)
install(TARGETS barony
- RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
COMPONENT Runtime
)
endif(GAME_ENABLED)
@@ -746,7 +746,7 @@ endif(EDITOR_ENABLED)
if (NOT APPLE AND UNIX)
if (EDITOR_ENABLED)
install(TARGETS ${EDITOR_EXE_NAME}
- RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" COMPONENT Runtime
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" COMPONENT Runtime
)
endif()
@@ -770,11 +770,11 @@ if (NOT APPLE AND UNIX)
${CMAKE_SOURCE_DIR}/steam_appid.txt
DESTINATION "${CMAKE_INSTALL_PREFIX}"
)
- endif()
+ endif()
install(DIRECTORY
${CMAKE_SOURCE_DIR}/lang
- DESTINATION "${CMAKE_INSTALL_PREFIX}"
+ DESTINATION "${CMAKE_INSTALL_DATADIR}"
)
install(FILES
@@ -782,7 +782,7 @@ if (NOT APPLE AND UNIX)
${CMAKE_SOURCE_DIR}/playernames-female.txt
${CMAKE_SOURCE_DIR}/playernames-male.txt
#TYPE INCLUDE # If your CMAKE is stupid like mine and it complains about "install FILES given no DESTINATION!", you can tell it to shove it by uncommenting this line.
- DESTINATION "${CMAKE_INSTALL_PREFIX}"
+ DESTINATION "${CMAKE_INSTALL_DATADIR}"
)
endif()