Disable USE_WOFF2 if the package is not found
authorAlberto Garcia <berto@igalia.com>
Sat, 9 Feb 2019 09:35:18 +0000 (09:35 +0000)
committerAlberto Garcia <berto@igalia.com>
Sat, 9 Feb 2019 09:35:18 +0000 (09:35 +0000)
===================================================================

Gbp-Pq: Name detect-woff.patch

Source/cmake/OptionsGTK.cmake

index a87177d0d7516cfc4f59a9beaa0eb091077872c5..fb774b0ac2f37eef782f4996941bccd406d65045 100644 (file)
@@ -345,7 +345,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 ()