SYSCONF_INSTALL_DIR: right location with CMAKE_INSTALL_PREFIX set to /usr?

Yury G. Kudryashov urkud at ya.ru
Thu May 5 14:13:20 CEST 2011


Friedrich W. H. Kossebau wrote:

> Hi,
> 
> I have blindly copied this for cagibi but since then wonder if this is
> correct in FindKDE4Internal.cmake:
> 
>    _set_fancy(SYSCONF_INSTALL_DIR      "${CMAKE_INSTALL_PREFIX}/etc"
> "The sysconfig install dir (default ${CMAKE_INSTALL_PREFIX}/etc)")
> 
> This will result in /usr/etc if CMAKE_INSTALL_PREFIX is set to /usr. But
> shouldn't it be /etc then?
_set_fancy allows the user to override it using

cmake -DSYSCONF_INSTALL_DIR=/etc

You can try
set(SYSCONF_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/etc CACHE PATH
    "Install directory for system-wide configuration files")



More information about the Kde-buildsystem mailing list