cmake: Not all system have HtmlViewer

Not all system have HtmlViewer, but we support that case
by inform user about file/website, so we "have" HtmlViewer.

Change-Id: I46e16a86b5c7f9dd47e1d1ded9d10fd4f565660f
Reviewed-on: https://code.wireshark.org/review/1875
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
Michal Labedzki 2014-05-01 17:01:36 +02:00 committed by Alexis La Goutte
parent 1258ce7bce
commit aff380770a
1 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,11 @@ endif()
include( FindPackageHandleStandardArgs )
find_package_handle_standard_args( HtmlViewer DEFAULT_MSG HTML_VIEWER_EXECUTABLE )
if (NOT HTML_VIEWER_EXECUTABLE)
set(HTML_VIEWER_EXECUTABLE "")
set(HTMLVIEWER_FOUND ON)
endif()
# For compat with configure
set( HTML_VIEWER ${HTML_VIEWER_EXECUTABLE} )