From f2987a295ff847ecb2a6a3eae1a271c9a64255b6 Mon Sep 17 00:00:00 2001 From: Daniel E Date: Sun, 3 Apr 2022 18:49:19 +0000 Subject: [PATCH] cmake: Remove non needed files in docs dir Don't install files that are used to generate the documentation --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a9c8177..68419a09 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -597,7 +597,13 @@ endif() install(FILES doc/xml2-config.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation) install(FILES doc/xmlcatalog.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation) install(FILES doc/xmllint.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation) -install(DIRECTORY doc/ DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/libxml2 COMPONENT documentation PATTERN Makefile.* EXCLUDE) +install(DIRECTORY doc/ DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/libxml2 COMPONENT documentation + PATTERN "Makefile.*" EXCLUDE + PATTERN "*.xsl" EXCLUDE + PATTERN "*.py" EXCLUDE + PATTERN "*.xml" EXCLUDE + PATTERN "examples/*" EXCLUDE) +install(DIRECTORY doc/examples/ DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/libxml2/examples COMPONENT documentation PATTERN "Makefile.*" EXCLUDE) configure_package_config_file( libxml2-config.cmake.cmake.in libxml2-config.cmake