cpack: artifacts
[m6w6/libmemcached] / CMakeConfig.txt
index b8c60a761693eefc0677b945848f089d0e372865..e4fee7a67d991761b8546b29a691a00c3b6a9853 100644 (file)
@@ -17,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"
@@ -67,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")
@@ -79,11 +91,3 @@ if(BUILD_DOCS)
     set(SPHINX_CONF_APPEND ""
         CACHE STRING "append verbatim code to sphinx' conf.py")
 endif()
-
-# modules
-
-list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake")
-
-if(NOT BUILD_DOCSONLY)
-    include(CMake/_Include.cmake)
-endif()