Droppped CMake requirement to 2.6
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required(VERSION 2.8.12)
|
cmake_minimum_required(VERSION 2.6)
|
||||||
|
|
||||||
include(macros.cmake)
|
include(macros.cmake)
|
||||||
|
|
||||||
|
|||||||
17
README
17
README
@ -157,7 +157,7 @@ Please check errmsg.sys is found in the MaxScale install_dir DEST/MaxScale/mysql
|
|||||||
You can also build MaxScale with CMake which makes the build process a bit more simple.
|
You can also build MaxScale with CMake which makes the build process a bit more simple.
|
||||||
|
|
||||||
All the same dependencies are required as with the normal MaxScale build with the addition of CMake
|
All the same dependencies are required as with the normal MaxScale build with the addition of CMake
|
||||||
version 2.6 for regular builds and 2.8 or newer if you wish to generate packages.
|
version 2.6 for regular builds and 2.8.12 or newer if you wish to generate packages.
|
||||||
|
|
||||||
CMake tries to find all the required directories and files on its own but if it can't find them or you wish to
|
CMake tries to find all the required directories and files on its own but if it can't find them or you wish to
|
||||||
explicitly state the locations you can pass additional options to CMake by using the -D flag. To confirm the variable
|
explicitly state the locations you can pass additional options to CMake by using the -D flag. To confirm the variable
|
||||||
@ -169,13 +169,19 @@ makes it easy to get rid of everything you built.
|
|||||||
By default, MaxScale installs to /usr/local/skysql and places init.d scripts and ldconfig files into their folders. Change the INSTALL_DIR
|
By default, MaxScale installs to /usr/local/skysql and places init.d scripts and ldconfig files into their folders. Change the INSTALL_DIR
|
||||||
variable to your desired installation directory and set INSTALL_SYSTEM_FILES=N to prevent the init.d script and ldconfig file installation.
|
variable to your desired installation directory and set INSTALL_SYSTEM_FILES=N to prevent the init.d script and ldconfig file installation.
|
||||||
|
|
||||||
To build and install MaxScale using CMake with a custom install location and a separate build directory:
|
To build MaxScale using CMake:
|
||||||
|
|
||||||
cmake -D_INSTALL_DIR=<install destination> <path to MaxScale source>
|
cd <path to MaxScale source>
|
||||||
|
|
||||||
make
|
mkdir build
|
||||||
|
|
||||||
make install
|
cd build
|
||||||
|
|
||||||
|
cmake ..
|
||||||
|
|
||||||
|
make
|
||||||
|
|
||||||
|
make install
|
||||||
|
|
||||||
This generates the required makefiles in the current directory, compiles and links all the programs and installs
|
This generates the required makefiles in the current directory, compiles and links all the programs and installs
|
||||||
all the required files in their right places.
|
all the required files in their right places.
|
||||||
@ -198,6 +204,7 @@ GCOV=[Y|N] Generate gcov output
|
|||||||
BUILD_TESTS=[Y|N] Build tests
|
BUILD_TESTS=[Y|N] Build tests
|
||||||
DEBUG_OUTPUT=[Y|N] Produce debugging output when configuring CMake
|
DEBUG_OUTPUT=[Y|N] Produce debugging output when configuring CMake
|
||||||
|
|
||||||
|
|
||||||
\section Running Running MaxScale
|
\section Running Running MaxScale
|
||||||
|
|
||||||
MaxScale consists of a core executable and a number of modules that implement
|
MaxScale consists of a core executable and a number of modules that implement
|
||||||
|
|||||||
Reference in New Issue
Block a user