Disable USE_WOFF2 if the package is not found
authorAlberto Garcia <berto@igalia.com>
Fri, 10 May 2019 09:39:42 +0000 (10:39 +0100)
committerAlberto Garcia <berto@igalia.com>
Fri, 10 May 2019 09:39:42 +0000 (10:39 +0100)
===================================================================

Gbp-Pq: Name detect-woff.patch

Source/cmake/OptionsGTK.cmake

index aa93258197b94b33582ccd36af3e9401391f68ef..c30758d6e1e430cac1264fd875454c91c57472c9 100644 (file)
@@ -365,7 +365,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 ()