X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=CMakeConfig.txt;h=e4fee7a67d991761b8546b29a691a00c3b6a9853;hb=946b9670af4a97be463cae05b5cce6a082d9f475;hp=50a2be47b0f0751f3cf17a812a3fadc94ae6d1c8;hpb=ec535cafc2f8b32dbef9084a5df8b70ea60733bb;p=awesomized%2Flibmemcached diff --git a/CMakeConfig.txt b/CMakeConfig.txt index 50a2be47..e4fee7a6 100644 --- a/CMakeConfig.txt +++ b/CMakeConfig.txt @@ -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" @@ -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,16 +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) - -# modules - -list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake") - -if(NOT BUILD_DOCSONLY) - include(CMake/_Include.cmake) -endif()