[CMake] Create dir for pandoc generation

This commit is contained in:
Martijn van Beurden 2022-09-22 06:46:03 +02:00 committed by GitHub
parent 8e50d89a40
commit a076395de0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -265,6 +265,7 @@ install(FILES ${FLAC++_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/FLAC++"
if(INSTALL_MANPAGES)
find_program (HAVE_PANDOC pandoc)
if(HAVE_PANDOC)
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/man")
add_custom_command(
OUTPUT man/flac.1
COMMAND pandoc --standalone --to man "${CMAKE_SOURCE_DIR}/man/flac.md" > man/flac.1