Blame SOURCES/0066-cmake-Use-correct-installation-dir-for-generated-doc.patch

bab77a
From f8f63a8b4033549d47384c6e2b1972ae1a2775fc Mon Sep 17 00:00:00 2001
bab77a
From: Andreas Schneider <asn@cryptomilk.org>
bab77a
Date: Wed, 2 Jan 2019 10:28:57 +0100
bab77a
Subject: [PATCH 66/70] cmake: Use correct installation dir for generated docs
bab77a
bab77a
Fixes #623
bab77a
bab77a
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
bab77a
---
bab77a
 cmake/generateDoc.cmake | 2 +-
bab77a
 1 file changed, 1 insertion(+), 1 deletion(-)
bab77a
bab77a
diff --git a/cmake/generateDoc.cmake b/cmake/generateDoc.cmake
bab77a
index a3aea727..16823946 100644
bab77a
--- a/cmake/generateDoc.cmake
bab77a
+++ b/cmake/generateDoc.cmake
bab77a
@@ -21,7 +21,7 @@ macro(generate_documentation DOX_CONFIG_FILE)
bab77a
     set(DOXY_CONFIG "${CMAKE_CURRENT_BINARY_DIR}/doxy.config")
bab77a
     add_custom_target(doc ${DOXYGEN_EXECUTABLE} ${DOXY_CONFIG})
bab77a
 
bab77a
-    install(DIRECTORY "${PROJECT_BINARY_DIR}/doc/html/" DESTINATION "share/doc/lib${PROJECT_NAME}")
bab77a
+    install(DIRECTORY "${PROJECT_BINARY_DIR}/doc/html/" DESTINATION ${CMAKE_INSTALL_DOCDIR})
bab77a
 
bab77a
     set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES doc)
bab77a
 endmacro()
bab77a
-- 
bab77a
2.17.2
bab77a