cmake: make docbook build optional if AsciiDoc is missing
This prevents ASCIIDOC2xxx from being invoked (which would define useless targets and error out during the build since a2x is missing). Now Wireshark.sln builds successfully without Cygwin. Change-Id: I37684ce4a2ef22bdc74b388ced44271e14a1d337 Reviewed-on: https://code.wireshark.org/review/21384 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
parent
976d8abce4
commit
122c4dd04f
|
@ -296,6 +296,11 @@ set(WSLUA_MODULES
|
|||
${CMAKE_SOURCE_DIR}/epan/wslua/wslua_struct.c
|
||||
)
|
||||
|
||||
if(NOT ASCIIDOC_FOUND)
|
||||
message(WARNING "AsciiDoc not found, cannot build documentation.")
|
||||
return()
|
||||
endif()
|
||||
|
||||
# Empty file to trigger wsluarm generation.
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT
|
||||
|
|
Loading…
Reference in New Issue