testing: flush
[awesomized/libmemcached] / CMakeConfig.txt
index 41b76324d486f8c2400b4e643e399876b2443955..7f611de5d7a3216b2b1738d1c4b95a9aa00d0d12 100644 (file)
@@ -3,6 +3,15 @@ set(CMAKE_BUILD_TYPE Release
 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"
@@ -35,6 +44,8 @@ set(ENABLE_SANITIZERS ""
 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)