cmake: compat with <3.12
[m6w6/libmemcached] / CMakeConfig.txt
index 377c03ad8314e9c924b50e5d95c4fd14c980ce0d..5203ddac357b4b171529a728f291fae856db2749 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"
@@ -79,13 +85,3 @@ if(BUILD_DOCS)
     set(SPHINX_CONF_APPEND ""
         CACHE STRING "append verbatim code to sphinx' conf.py")
 endif()
-
-# modules
-
-include(GNUInstallDirs)
-
-list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake")
-
-if(NOT BUILD_DOCSONLY)
-    include(CMake/_Include.cmake)
-endif()