From f949d2e698383be122cc58a26af3f7a9626ae22d Mon Sep 17 00:00:00 2001 From: Joel Anderson Date: Thu, 23 May 2024 16:37:23 -0400 Subject: [PATCH] update doc installation directory --- CMakeLists.txt | 6 +++--- tools/cmake/install_html.cmake | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 132813394..56f1d3d5e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -795,9 +795,9 @@ endif() # installation of examples if enabled if(INSTALL_EXAMPLES) - install(DIRECTORY - ${PROJECT_SOURCE_DIR}/docs/examples - DESTINATION ${CMAKE_INSTALL_DOCDIR} + install( + DIRECTORY "${PROJECT_SOURCE_DIR}/docs/examples" + DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/doc/libstumpless" ) endif() diff --git a/tools/cmake/install_html.cmake b/tools/cmake/install_html.cmake index f352eb43b..2b3f1a12c 100644 --- a/tools/cmake/install_html.cmake +++ b/tools/cmake/install_html.cmake @@ -1,5 +1,5 @@ set(HTML_BUILD_DIR "${PROJECT_BINARY_DIR}/docs/${STUMPLESS_LANGUAGE}/html") install(DIRECTORY "${HTML_BUILD_DIR}" - DESTINATION "${CMAKE_INSTALL_DOCDIR}" + DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/doc/libstumpless" )