diff --git a/CMakeLists.txt b/CMakeLists.txt index 21114a2a9f..f2ecf0fb2c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}" )