From 6f31a84ebc581a8f6c4732303433e1f3b06617a1 Mon Sep 17 00:00:00 2001 From: Alberto Garcia Date: Mon, 29 Oct 2018 11:36:11 +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 65032b2af0..ed48a8ceb3 100644 --- a/Source/cmake/OptionsGTK.cmake +++ b/Source/cmake/OptionsGTK.cmake @@ -347,7 +347,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