From 122c4dd04fa762092dc5c19a522c9297ea108f04 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Thu, 27 Apr 2017 17:34:46 +0200 Subject: [PATCH] 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 Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu --- docbook/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docbook/CMakeLists.txt b/docbook/CMakeLists.txt index 7bdcaa8d19..121f943e40 100644 --- a/docbook/CMakeLists.txt +++ b/docbook/CMakeLists.txt @@ -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