summaryrefslogtreecommitdiff
path: root/net-proxy/shadowsocks-libev/files/shadowsocks-libev-3.3.6-doc.patch
blob: 97957b94a96b0471f4097bdc21f4781c97f90a78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 15f0551..901d12e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,6 +36,7 @@ endif ()
 
 message(STATUS "Running cmake version ${CMAKE_VERSION}")
 
+option(WITH_DOCS "build with Documentations." ON)
 option(WITH_STATIC "build with static libraries." ON)
 option(WITH_EMBEDDED_SRC "build with embedded libcork, libipset, and libbloom source." ON)
 option(ENABLE_CONNMARKTOS "Enable saved connmark to IP TOS QoS feature" OFF)
@@ -177,7 +178,10 @@ target_link_libraries(ipset cork bloom)
 endif ()
 
 add_subdirectory(src)
+
+if(WITH_DOCS)
 add_subdirectory(doc)
+endif()
 
 # Testing
 include(CTest)
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 9abd455..76a1993 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -84,7 +84,7 @@ if (NOT WITH_DOC_HTML)
     set_target_properties(doc-html PROPERTIES EXCLUDE_FROM_ALL TRUE)
 else ()
     install(DIRECTORY ${PROJECT_BINARY_DIR}/html/
-            DESTINATION share/doc/${PROJECT_NAME})
+            DESTINATION share/doc/${PROJECT_NAME}-${PROJECT_VERSION})
 endif ()
 
 # This is required for custom command