Files
MaxScale/cmake/defaults.cmake
Markus Mäkelä 67df3ad4f0 Use option() CMake command
This is the appropriate command for ON/OFF options controlled by the
user. Also removed the useless C99 option which must always be on (using
C11 would be another option).
2018-08-20 13:56:58 +03:00

34 lines
1.6 KiB
CMake

# Default configuration values
#
# You can change these through CMake by adding -D<variable>=<value> when
# configuring the build.
option(WITH_MAXSCALE_CNF "Install the template maxscale.cnf file" ON)
option(STATIC_EMBEDDED "Use static version of libmysqld" ON)
option(BUILD_RABBITMQ "Build RabbitMQ components" ON)
option(BUILD_BINLOG "Build binlog router" ON)
option(BUILD_CDC "Build Avro router" ON)
option(BUILD_MMMON "Build multimaster monitor" ON)
option(BUILD_MAXCTRL "Build MaxCtrl" ON)
option(BUILD_LUAFILTER "Build Luafilter" ON)
option(GCOV "Use gcov build flags" OFF)
option(WITH_SCRIPTS "Install init.d scripts and ldconf configuration files" ON)
option(BUILD_TESTS "Build tests" ON)
option(PACKAGE "Enable package building (this disables local installation of system files)" OFF)
option(BUILD_TOOLS "Build extra utility tools" OFF)
option(PROFILE "Profiling (gprof)" OFF)
option(WITH_TCMALLOC "Use tcmalloc as the memory allocator" OFF)
option(WITH_JEMALLOC "Use jemalloc as the memory allocator" OFF)
option(INSTALL_EXPERIMENTAL "Install experimental modules" OK)
option(WITH_ASAN "Enable AddressSanitizer" OFF)
option(WITH_ASAN "Enable ThreadSanitizer" OFF)
# Default package name
set(PACKAGE_NAME "maxscale" CACHE STRING "Name of the generated package")
# Which component to build (core, experimental, devel, cdc-connector, all)
set(TARGET_COMPONENT "core" CACHE STRING "Which component to build (core, experimental, devel, cdc-connector, all)")
# Default user for the administrative interface
set(DEFAULT_ADMIN_USER "root" CACHE STRING "Default user for the administrative interface")