Changed standard installation directory from /usr/local/mariadb-maxscale to /usr/local.
This commit is contained in:
@ -9,17 +9,8 @@ message(STATUS "CMake version: ${CMAKE_VERSION}")
|
|||||||
include(${CMAKE_SOURCE_DIR}/cmake/macros.cmake)
|
include(${CMAKE_SOURCE_DIR}/cmake/macros.cmake)
|
||||||
enable_testing()
|
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)
|
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.")
|
set(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "Prefix prepended to install directories.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Set the install layout
|
# Set the install layout
|
||||||
# Possible values:
|
# Possible values:
|
||||||
# STANDALONE - Installs to /usr/local/mariadb-maxscale
|
# STANDALONE - Installs to /usr/local
|
||||||
# PACKAGE - Installs to /usr
|
# PACKAGE - Installs to /usr
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user