Disable USE_WOFF2 if the package is not found
authorAlberto Garcia <berto@igalia.com>
Fri, 17 May 2019 14:40:52 +0000 (15:40 +0100)
committerAlberto Garcia <berto@igalia.com>
Fri, 17 May 2019 14:40:52 +0000 (15:40 +0100)
===================================================================

Gbp-Pq: Name detect-woff.patch

Source/cmake/OptionsGTK.cmake

index 43e1ab2fee2c7b322d8c9db457f52734b569c285..ee9b3fd66fb504b194ad2a8246f17d136db328f4 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 ()