Disable USE_WOFF2 if the package is not found
authorAlberto Garcia <berto@igalia.com>
Mon, 13 Jul 2020 23:38:23 +0000 (00:38 +0100)
committerAlberto Garcia <berto@igalia.com>
Mon, 13 Jul 2020 23:38:23 +0000 (00:38 +0100)
Forwarded: no

===================================================================

Gbp-Pq: Name detect-woff.patch

Source/cmake/OptionsGTK.cmake

index ceeb52aff4699879ba21e5af0baad08e065227b6..7341c6c58bbc5b04cf35fb5b668b9373fc502a34 100644 (file)
@@ -382,7 +382,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 ()