aboutsummaryrefslogtreecommitdiff
path: root/graphics/h3/files/patch-CMakeLists.txt
blob: c5f730f01fb06122f88072abced02a45f080339d (plain) (blame)
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
--- CMakeLists.txt.orig	2020-06-20 00:40:07 UTC
+++ CMakeLists.txt
@@ -274,27 +274,6 @@ elseif(NOT CLANG_TIDY_PATH)
                   "so source code linting is disabled")
 endif()
 
-# Docs
-find_package(Doxygen)
-option(ENABLE_DOCS "Enable building documentation." ON)
-if(DOXYGEN_FOUND AND ENABLE_DOCS)
-    set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES "${CMAKE_CURRENT_BINARY_DIR}/dev-docs/_build")
-    configure_file(dev-docs/Doxyfile.in
-        dev-docs/Doxyfile
-        ESCAPE_QUOTES
-        )
-    add_custom_target(docs
-        ALL
-        ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/dev-docs/Doxyfile
-        WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/dev-docs
-        COMMENT "Generating API documentation with Doxygen" VERBATIM
-        )
-else()
-    add_custom_target(docs
-        echo "Doxygen was not installed when CMake was run or ENABLE_DOCS was OFF. Check that Doxygen is installed and rerun `cmake .`" VERBATIM
-        )
-endif()
-
 # Metadata for bindings
 if (WIN32)
     add_custom_target(binding-functions