Changed standard installation directory from /usr/local/mariadb-maxscale to /usr/local.

This commit is contained in:
Markus Makela 2015-04-29 05:42:58 +03:00
parent 3501ffb689
commit 5394b4d0fa
2 changed files with 2 additions and 11 deletions

View File

@ -9,17 +9,8 @@ message(STATUS "CMake version: ${CMAKE_VERSION}")
include(${CMAKE_SOURCE_DIR}/cmake/macros.cmake)
enable_testing()
# Packaging builds install to /usr and other builds to /usr/local/mariadb-maxscale
# Packaging builds install to /usr and other builds to /usr/local
if(PACKAGE)
set(INSTALL_LAYOUT "PACKAGE" CACHE STRING "Install layout, options are: STANDALONE, PACKAGE")
else()
set(INSTALL_LAYOUT "STANDALONE" CACHE STRING "Install layout, options are: STANDALONE, PACKAGE")
endif()
# Installation prefixes for different layouts
if(${INSTALL_LAYOUT} MATCHES "STANDALONE")
set(CMAKE_INSTALL_PREFIX "/usr/local/mariadb-maxscale" CACHE PATH "Prefix prepended to install directories.")
else()
set(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "Prefix prepended to install directories.")
endif()

View File

@ -1,6 +1,6 @@
# Set the install layout
# Possible values:
# STANDALONE - Installs to /usr/local/mariadb-maxscale
# STANDALONE - Installs to /usr/local
# PACKAGE - Installs to /usr
include(GNUInstallDirs)