CMake: Fix manpages installation on some platforms

Two manpages are installed by Autotools as symlinks, on some platforms
they are not visible and installation fails with error.

Install these files with renaming to avoid errors.

Related to edc513a, #m-ab-s/media-autobuild_suite#1801
This commit is contained in:
evpobr 2020-08-28 18:38:06 +05:00
parent b329ba64ab
commit 22fca506cf

View File

@ -726,19 +726,20 @@ else ()
endif ()
if (INSTALL_MANPAGES)
set (man_MANS
man/sndfile-info.1
man/sndfile-play.1
man/sndfile-convert.1
man/sndfile-cmp.1
man/sndfile-metadata-get.1
man/sndfile-metadata-set.1
man/sndfile-concat.1
man/sndfile-interleave.1
man/sndfile-deinterleave.1
man/sndfile-salvage.1
)
install (FILES ${man_MANS} DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
install (FILES man/sndfile-metadata-get.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 RENAME sndfile-metadata-set.1)
install (FILES man/sndfile-interleave.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 RENAME sndfile-deinterleave.1)
endif ()
if (ENABLE_BOW_DOCS)