From 019cdb4c23fe4f5cf8c6d496707f52da2f38ff71 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Tue, 12 Nov 2019 12:15:29 +0000 Subject: [PATCH] Disable USE_WOFF2 if the package is not found =================================================================== Gbp-Pq: Name detect-woff.patch --- Source/cmake/OptionsGTK.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmake/OptionsGTK.cmake b/Source/cmake/OptionsGTK.cmake index 5f269e8b1a..f473d52a36 100644 --- a/Source/cmake/OptionsGTK.cmake +++ b/Source/cmake/OptionsGTK.cmake @@ -363,7 +363,8 @@ endif () if (USE_WOFF2) find_package(WOFF2Dec 1.0.2) if (NOT WOFF2DEC_FOUND) - message(FATAL_ERROR "libwoff2dec is needed for USE_WOFF2.") + set(USE_WOFF2 OFF) + message(STATUS "libwoff2dec is needed for USE_WOFF2.") endif () endif () -- 2.30.2