cmake: Install documentation in CMAKE_INSTALL_DOCDIR

Sync with recent Autotools change.
This commit is contained in:
Nick Wellnhofer 2022-04-08 15:46:26 +02:00
parent 4d98f6f9c5
commit a5724a3b4a

View File

@ -600,7 +600,7 @@ 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
install(DIRECTORY doc/ DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT documentation
PATTERN "Makefile.*" EXCLUDE
PATTERN "*.1" EXCLUDE
PATTERN "*.py" EXCLUDE