-# sasl
-
-set(ENABLE_SASL OFF
- CACHE BOOL "enable SASL support")
-
-# hashes
-
-set(ENABLE_FNV64_HASH ON
- CACHE BOOL "enable fnv64 hash support")
-set(ENABLE_MURMUR_HASH ON
- CACHE BOOL "enable murmur hash support")
-set(ENABLE_HSIEH_HASH OFF
- CACHE BOOL "enable hsieh hash support")
-
-# memaslap, needs libevent and stdatomic
-set(ENABLE_MEMASLAP ON
- CACHE BOOL "enable memaslap client")
-
-# dtrace
-
-set(ENABLE_DTRACE OFF
- CACHE BOOL "enable dtrace support")
-
-# sphinx
-
-set(SPHINX_OPTIONS ""
- CACHE STRING "additional sphinx-build command line options")
-set(SPHINX_THEME "sphinx_rtd_theme"
- CACHE STRING "sphinx HTML theme")
-set(SPHINX_THEME_OPTIONS "'collapse_navigation':False, 'navigation_depth':2, 'titles_only':False, 'includehidden':False"
- CACHE STRING "sphinx HTML theme options")
-set(SPHINX_EXTENSIONS ""
- CACHE STRING "comma separated list of quoted sphinx extensions")
-set(SPHINX_CONF_APPEND ""
- CACHE STRING "append verbatim code to sphinx' conf.py")
+if(BUILD_TESTING)
+ set(MEMCACHED_BINARY "/usr/bin/memcached"
+ CACHE FILEPATH "memcached binary")
+endif()
+
+if(BUILD_DOCS)
+ set(SPHINX_OPTIONS ""
+ CACHE STRING "additional sphinx-build command line options")
+ set(SPHINX_THEME "sphinx_rtd_theme"
+ CACHE STRING "sphinx HTML theme")
+ set(SPHINX_THEME_OPTIONS ""
+ CACHE STRING "sphinx HTML theme options")
+ set(SPHINX_EXTENSIONS ""
+ CACHE STRING "comma separated list of quoted sphinx extensions")
+ set(SPHINX_CONF_APPEND ""
+ CACHE STRING "append verbatim code to sphinx' conf.py")
+endif()