projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
testing: improve sanitizer handling
[awesomized/libmemcached]
/
CMakeConfig.txt
diff --git
a/CMakeConfig.txt
b/CMakeConfig.txt
index 0c8a118b6b99bab997f055b5303b83ff573f02ae..7f611de5d7a3216b2b1738d1c4b95a9aa00d0d12 100644
(file)
--- a/
CMakeConfig.txt
+++ b/
CMakeConfig.txt
@@
-3,12
+3,21
@@
set(CMAKE_BUILD_TYPE Release
set(CMAKE_INSTALL_PREFIX /usr/local
CACHE PATH "install prefix")
set(CMAKE_INSTALL_PREFIX /usr/local
CACHE PATH "install prefix")
+if(APPLE)
+ set(CMAKE_INSTALL_RPATH @loader_path
+ CACHE STRING "set relative rpath")
+elseif(UNIX)
+ # FIXME
+ set(CMAKE_INSTALL_RPATH $ORIGIN
+ CACHE STRING "set relative rpath")
+endif()
+
option(BUILD_TESTING "whether to enable build of the test suite"
OFF)
option(BUILD_DOCSONLY "build *only* documentation"
OFF)
option(BUILD_DOCS "build documentation"
option(BUILD_TESTING "whether to enable build of the test suite"
OFF)
option(BUILD_DOCSONLY "build *only* documentation"
OFF)
option(BUILD_DOCS "build documentation"
-
OFF
)
+
${BUILD_DOCSONLY}
)
option(BUILD_DOCS_HTML "build HTML docs"
${BUILD_DOCS})
option(BUILD_DOCS_MAN "build manpages"
option(BUILD_DOCS_HTML "build HTML docs"
${BUILD_DOCS})
option(BUILD_DOCS_MAN "build manpages"
@@
-35,14
+44,16
@@
set(ENABLE_SANITIZERS ""
if(BUILD_TESTING)
set(MEMCACHED_BINARY "/usr/bin/memcached"
CACHE FILEPATH "memcached binary")
if(BUILD_TESTING)
set(MEMCACHED_BINARY "/usr/bin/memcached"
CACHE FILEPATH "memcached binary")
+ set(CMAKE_CTEST_ARGUMENTS "--output-on-failure;-j2;--repeat;until-pass:2"
+ ) # available since CMake 3.17
endif()
if(BUILD_DOCS)
set(SPHINX_OPTIONS ""
CACHE STRING "additional sphinx-build command line options")
endif()
if(BUILD_DOCS)
set(SPHINX_OPTIONS ""
CACHE STRING "additional sphinx-build command line options")
- set(SPHINX_THEME "
nature" #"
sphinx_rtd_theme"
+ set(SPHINX_THEME "sphinx_rtd_theme"
CACHE STRING "sphinx HTML theme")
CACHE STRING "sphinx HTML theme")
- set(SPHINX_THEME_OPTIONS ""
#"'collapse_navigation':False, 'navigation_depth':2, 'titles_only':False, 'includehidden':False"
+ set(SPHINX_THEME_OPTIONS ""
CACHE STRING "sphinx HTML theme options")
set(SPHINX_EXTENSIONS ""
CACHE STRING "comma separated list of quoted sphinx extensions")
CACHE STRING "sphinx HTML theme options")
set(SPHINX_EXTENSIONS ""
CACHE STRING "comma separated list of quoted sphinx extensions")