cmake: Remove more unnecessary files installed in docs dir

Sync with commit 95766541622b3a66c929e2e272b0252750d0174d
Don't install man pages in docs directory, these are already installed
in the correct path and while at it sort list
This commit is contained in:
Daniel E 2022-04-08 12:11:39 +00:00
parent 21561e833a
commit 4d98f6f9c5

View File

@ -602,11 +602,11 @@ install(FILES doc/xmlcatalog.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONEN
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
PATTERN "*.xsl" EXCLUDE
PATTERN "*.1" EXCLUDE
PATTERN "*.py" EXCLUDE
PATTERN "*.res" EXCLUDE
PATTERN "*.xml" EXCLUDE
PATTERN "examples/*" EXCLUDE)
install(DIRECTORY doc/examples/ DESTINATION ${CMAKE_INSTALL_DATADIR}/doc/libxml2/examples COMPONENT documentation PATTERN "Makefile.*" EXCLUDE)
PATTERN "*.xsl" EXCLUDE)
configure_package_config_file(
libxml2-config.cmake.cmake.in libxml2-config.cmake