From 92833317d65089a6870d296b8da8646a4c39982f Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 20 Mar 2017 17:18:04 +0100 Subject: [PATCH] Can't have as a mandatory dependency a deprecated system The sources aren't available by the author --- docs/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index 18f4739c..80163e4a 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -2,9 +2,10 @@ find_program (XMLTO xmlto) mark_as_advanced (XMLTO) -if (XMLTO STREQUAL "XMLTO-NOTFOUND") - message (FATAL_ERROR "Xmlto was not found! Please install it to continue!") -endif (XMLTO STREQUAL "XMLTO-NOTFOUND") +if (NOT XMLTO) + message (WARNING "Xmlto was not found! Please install it to continue!") + return() +endif () include (${CMAKE_SOURCE_DIR}/data/cmake/documentation.cmake)