CMake: fix macOS build without Asciidoctor

Fix an error when running cmake on macOS without Asciidoctor:

    The dependency target "manpages" of target "wireshark" does not exist.

Fixes: 44bd3a7d79 ("CMake+Docs: Update our man page targets.")
This commit is contained in:
Peter Wu 2021-11-03 15:23:10 +01:00 committed by Wireshark GitLab Utility
parent 46e08f0f67
commit e84acd86eb
1 changed files with 5 additions and 1 deletions

View File

@ -2530,7 +2530,11 @@ if(BUILD_wireshark AND QT_FOUND)
endif()
if(ENABLE_APPLICATION_BUNDLE)
add_dependencies(wireshark manpages)
if(ASCIIDOCTOR_FOUND)
# Make sure to generate files referenced by
# BUNDLE_RESOURCE_SHARE_MAN1_FILES
add_dependencies(wireshark manpages)
endif()
set_target_properties(
wireshark PROPERTIES
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_BINARY_DIR}/packaging/macosx/Info.plist