aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindXSLTPROC.cmake
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-10-06 11:44:51 -0700
committerGuy Harris <guy@alum.mit.edu>2015-10-06 18:46:00 +0000
commit12c83d02cc34759ddf66070afb0ed0fae0a7b06e (patch)
tree3d98b6cf5ab326f8803a2d7b880ffe57d56650a0 /cmake/modules/FindXSLTPROC.cmake
parent082b0d7ba279b0a87eb2620f2875b77fd24e7931 (diff)
Report an error if we don't find fop and are going to try to use it.
Change-Id: Ide5c43b797a2fa07c7d3c7f986d306a158d68c6b Reviewed-on: https://code.wireshark.org/review/10840 Reviewed-by: Guy Harris <guy@alum.mit.edu> (cherry picked from commit 6c45d217d9d4fbf2a4dbc17d0b92334e3bc93052) Reviewed-on: https://code.wireshark.org/review/10841
Diffstat (limited to 'cmake/modules/FindXSLTPROC.cmake')
-rw-r--r--cmake/modules/FindXSLTPROC.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/modules/FindXSLTPROC.cmake b/cmake/modules/FindXSLTPROC.cmake
index 16d8b1cdb4..6b660fa7ee 100644
--- a/cmake/modules/FindXSLTPROC.cmake
+++ b/cmake/modules/FindXSLTPROC.cmake
@@ -7,6 +7,9 @@ include(FindCygwin)
if(ENABLE_PDF_GUIDES)
find_package(FOP)
+ if(${FOP_EXECUTABLE} STREQUAL "FOP_EXECUTABLE-NOTFOUND")
+ message(FATAL_ERROR "fop wasn't found, but is necessary for building PDFs." )
+ endif()
endif()
if(ENABLE_CHM_GUIDES)