[libxml2] cmake: Remove non needed files in docs dir
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] cmake: Remove non needed files in docs dir
- Date: Mon, 4 Apr 2022 12:47:56 +0000 (UTC)
commit f2987a295ff847ecb2a6a3eae1a271c9a64255b6
Author: Daniel E <daniel engberg lists pyret net>
Date: Sun Apr 3 18:49:19 2022 +0000
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]