Moved default file search paths to gwdirs.h which is configured by CMake from gwdirs.h.in.
This commit is contained in:
@ -3,18 +3,12 @@
|
||||
# STANDALONE - Installs to /usr/local/mariadb-maxscale
|
||||
# RPM - Installs to /usr
|
||||
# DEB - Installs to /usr
|
||||
if(${TYPE} MATCHES "STANDALONE")
|
||||
include(GNUInstallDirs)
|
||||
|
||||
set(CMAKE_INSTALL_PREFIX "/usr/local/mariadb-maxscale" CACHE PATH "Prefix prepended to install directories.")
|
||||
|
||||
# RPM and DEB are the same until differences are found
|
||||
else()
|
||||
set(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "Prefix prepended to install directories.")
|
||||
endif()
|
||||
|
||||
set(MAXSCALE_LIBDIR lib64/maxscale CACHE PATH "Library installation path")
|
||||
set(MAXSCALE_BINDIR bin CACHE PATH "Executable installation path")
|
||||
set(MAXSCALE_SHAREDIR share/maxscale CACHE PATH "Share file installation path, includes licence and readme files")
|
||||
set(MAXSCALE_DOCDIR share/doc/maxscale CACHE PATH "Documentation installation path, text versions only")
|
||||
set(MAXSCALE_CONFDIR etc CACHE PATH "Configuration file installation path, this is not usually needed")
|
||||
set(MAXSCALE_LIBDIR ${CMAKE_INSTALL_LIBDIR}/maxscale CACHE PATH "Library installation path")
|
||||
set(MAXSCALE_BINDIR ${CMAKE_INSTALL_BINDIR} CACHE PATH "Executable installation path")
|
||||
set(MAXSCALE_SHAREDIR ${CMAKE_INSTALL_DATADIR}/maxscale CACHE PATH "Share file installation path, includes licence and readme files")
|
||||
set(MAXSCALE_DOCDIR ${CMAKE_INSTALL_DOCDIR}/maxscale CACHE PATH "Documentation installation path, text versions only")
|
||||
set(MAXSCALE_CONFDIR ${CMAKE_INSTALL_SYSCONFDIR} CACHE PATH "Configuration file installation path, this is not usually needed")
|
||||
set(MAXSCALE_VARDIR /var CACHE PATH "Data file path (usually /var/)")
|
||||
|
||||
|
Reference in New Issue
Block a user