Core/Buildsystem: Actually follow CONF_DIR path-directive when installing configuration-files on UNIX

Fixes issue #9649
This commit is contained in:
click
2013-04-14 14:35:45 +02:00
parent bf10860a1c
commit 7afe928f2a
2 changed files with 2 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ endif()
if( UNIX )
install(TARGETS authserver DESTINATION bin)
install(FILES authserver.conf.dist DESTINATION etc)
install(FILES authserver.conf.dist DESTINATION ${CONF_DIR})
elseif( WIN32 )
install(TARGETS authserver DESTINATION "${CMAKE_INSTALL_PREFIX}")
install(FILES authserver.conf.dist DESTINATION "${CMAKE_INSTALL_PREFIX}")

View File

@@ -197,7 +197,7 @@ endif()
if( UNIX )
install(TARGETS worldserver DESTINATION bin)
install(FILES worldserver.conf.dist DESTINATION etc)
install(FILES worldserver.conf.dist DESTINATION ${CONF_DIR})
elseif( WIN32 )
install(TARGETS worldserver DESTINATION "${CMAKE_INSTALL_PREFIX}")
install(FILES worldserver.conf.dist DESTINATION "${CMAKE_INSTALL_PREFIX}")