1 set(CMAKE_BUILD_TYPE Release
2 CACHE STRING "build type (Release, Debug, ...)")
3 set(CMAKE_INSTALL_PREFIX /usr/local
4 CACHE PATH "install prefix")
7 set(CMAKE_INSTALL_RPATH @loader_path
8 CACHE STRING "set relative rpath")
11 set(CMAKE_INSTALL_RPATH $ORIGIN
12 CACHE STRING "set relative rpath")
15 option(BUILD_TESTING "whether to enable build of the test suite"
17 option(BUILD_DOCSONLY "build *only* documentation"
19 option(BUILD_DOCS "build documentation"
21 option(BUILD_DOCS_HTML "build HTML docs"
23 option(BUILD_DOCS_MAN "build manpages"
25 option(BUILD_DOCS_MANGZ "gzip manpages"
28 option(ENABLE_DTRACE "enable dtrace support"
30 option(ENABLE_HASH_FNV64 "enable fnv64 hash support"
32 option(ENABLE_HASH_MURMUR "enable murmur hash support"
34 option(ENABLE_HASH_HSIEH "enable hsieh hash support"
36 option(ENABLE_MEMASLAP "enable memaslap client"
38 option(ENABLE_SASL "enable SASL support"
41 set(ENABLE_SANITIZERS ""
42 CACHE STRING "sanitizers to enable (e.g. address undefined ...)")
45 set(MEMCACHED_BINARY "/usr/bin/memcached"
46 CACHE FILEPATH "memcached binary")
47 set(CMAKE_CTEST_ARGUMENTS "--output-on-failure")
48 if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.17)
49 # available since CMake 3.17
50 list(APPEND CMAKE_CTEST_ARGUMENTS -j2 --repeat until-pass:2)
56 CACHE STRING "additional sphinx-build command line options")
57 set(SPHINX_THEME "sphinx_rtd_theme"
58 CACHE STRING "sphinx HTML theme")
59 set(SPHINX_THEME_OPTIONS ""
60 CACHE STRING "sphinx HTML theme options")
61 set(SPHINX_EXTENSIONS ""
62 CACHE STRING "comma separated list of quoted sphinx extensions")
63 set(SPHINX_CONF_APPEND ""
64 CACHE STRING "append verbatim code to sphinx' conf.py")
69 set(HAVE_VISIBILITY 1)
70 set(HAVE_SHARED_ENABLED 1)
71 set(HAVE_GCC_BUILTIN_ATOMIC 1)
75 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake)
77 if(NOT BUILD_DOCSONLY)
78 include(CMake/_Include.cmake)