SYSCONFDIR should be "/etc" instead of "$PREFIX/etc" if prefix is "/usr"

This commit is contained in:
Sebastian Wick 2014-09-19 07:13:06 +02:00
parent 2ae8158ee9
commit f46da271d7

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(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(SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/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(PROGRAMS "${OpenMW_BINARY_DIR}/openmw" DESTINATION "${BINDIR}" )