gh-actions: fix workflow
[awesomized/libmemcached] / CMakeConfig.txt
index 3c44a776af5aabbf0fd0ff53ec6599a9a10a3e92..e4fee7a67d991761b8546b29a691a00c3b6a9853 100644 (file)
@@ -1,4 +1,3 @@
-
 if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
     if(NOT DEFINED ENV{CMAKE_BUILD_TYPE})
         set(ENV{CMAKE_BUILD_TYPE} Release)
@@ -18,6 +17,12 @@ elseif(UNIX)
         CACHE STRING "set relative rpath")
 endif()
 
+if(${CMAKE_VERSION} VERSION_LESS "3.12")
+    set(TARGET_NAMELINK_COMPONENT "")
+else()
+    set(TARGET_NAMELINK_COMPONENT NAMELINK_COMPONENT dev)
+endif()
+
 option(BUILD_TESTING        "whether to enable build of the test suite"
         $ENV{BUILD_TESTING})
 option(BUILD_DOCSONLY       "build *only* documentation"
@@ -32,7 +37,7 @@ option(BUILD_DOCS_MANGZ     "gzip manpages"
         ${BUILD_DOCS_MAN})
 
 set(ENABLE_SANITIZERS "$ENV{ENABLE_SANITIZERS}"
-        CACHE STRING "sanitizers to enable (e.g. address undefined ...)")
+        CACHE STRING "sanitizers to enable (e.g. address;undefined ...)")
 option(ENABLE_SASL          "enable SASL support"
         $ENV{ENABLE_SASL})
 option(ENABLE_DTRACE        "enable dtrace support"
@@ -68,6 +73,12 @@ if(BUILD_TESTING)
     endif()
 endif()
 
+if(BUILD_DOCS_MANGZ)
+    set(BUILD_DOCS_MAN ON)
+endif()
+if(BUILD_DOCS_MAN OR BUILD_DOCS_HTML)
+    set(BUILD_DOCS ON)
+endif()
 if(BUILD_DOCS)
     set(SPHINX_OPTIONS ""
         CACHE STRING "additional sphinx-build command line options")
@@ -80,17 +91,3 @@ if(BUILD_DOCS)
     set(SPHINX_CONF_APPEND ""
         CACHE STRING "append verbatim code to sphinx' conf.py")
 endif()
-
-# legacy
-
-set(HAVE_VISIBILITY 1)
-set(HAVE_SHARED_ENABLED 1)
-set(HAVE_GCC_BUILTIN_ATOMIC 1)
-
-# modules
-
-list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake")
-
-if(NOT BUILD_DOCSONLY)
-    include(CMake/_Include.cmake)
-endif()