1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 18:15:33 +00:00

Merge remote-tracking branch 'swick/master'

This commit is contained in:
Marc Zinnschlag 2014-09-19 16:01:22 +02:00
commit 727a83d09a
3 changed files with 8 additions and 3 deletions

View file

@ -401,7 +401,11 @@ IF(NOT WIN32 AND NOT APPLE)
SET(DATADIR "${DATAROOTDIR}/games/openmw" CACHE PATH "Sets the openmw data directories to a non-default location") SET(DATADIR "${DATAROOTDIR}/games/openmw" CACHE PATH "Sets the openmw data directories to a non-default location")
SET(ICONDIR "${DATAROOTDIR}/pixmaps" CACHE PATH "Set icon dir") SET(ICONDIR "${DATAROOTDIR}/pixmaps" CACHE PATH "Set icon dir")
SET(LICDIR "${DATAROOTDIR}/licenses/openmw" CACHE PATH "Sets the openmw license directory to a non-default location.") SET(LICDIR "${DATAROOTDIR}/licenses/openmw" CACHE PATH "Sets the openmw license directory to a non-default location.")
SET(SYSCONFDIR "/etc/openmw" CACHE PATH "Set config dir") IF("${CMAKE_INSTALL_PREFIX}" STREQUAL "/usr")
SET(SYSCONFDIR "/etc/openmw" CACHE PATH "Set config dir")
ELSE()
SET(SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/etc/openmw" CACHE PATH "Set config dir")
ENDIF()
# Install binaries # Install binaries
INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/openmw" DESTINATION "${BINDIR}" ) INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/openmw" DESTINATION "${BINDIR}" )

View file

@ -57,6 +57,7 @@ add_component_dir (misc
utf8stream stringops resourcehelpers utf8stream stringops resourcehelpers
) )
add_definitions(-DINSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}")
add_component_dir (files add_component_dir (files
linuxpath androidpath windowspath macospath fixedpath multidircollection collections configurationmanager linuxpath androidpath windowspath macospath fixedpath multidircollection collections configurationmanager
constrainedfiledatastream lowlevelfile constrainedfiledatastream lowlevelfile

View file

@ -69,7 +69,7 @@ boost::filesystem::path LinuxPath::getCachePath() const
boost::filesystem::path LinuxPath::getGlobalConfigPath() const boost::filesystem::path LinuxPath::getGlobalConfigPath() const
{ {
boost::filesystem::path globalPath("/etc/"); boost::filesystem::path globalPath(INSTALL_PREFIX "/etc/");
return globalPath / mName; return globalPath / mName;
} }
@ -80,7 +80,7 @@ boost::filesystem::path LinuxPath::getLocalPath() const
boost::filesystem::path LinuxPath::getGlobalDataPath() const boost::filesystem::path LinuxPath::getGlobalDataPath() const
{ {
boost::filesystem::path globalDataPath("/usr/share/games/"); boost::filesystem::path globalDataPath(INSTALL_PREFIX "/share/games/");
return globalDataPath / mName; return globalDataPath / mName;
} }