Commit 11a66526 authored by Antonio Rojas's avatar Antonio Rojas Committed by Laurent Montel
Browse files

Guard qtxmlpatterns dependency under BUILD_TESTING option

It is only used in tests
parent 73072c33
Pipeline #187037 passed with stage
in 8 minutes and 28 seconds
......@@ -106,7 +106,7 @@ if(Qt${QT_MAJOR_VERSION}TextToSpeech_FOUND)
set(HAVE_TEXT_TO_SPEECH_SUPPORT TRUE)
endif()
find_package(Qt${QT_MAJOR_VERSION} ${QT_REQUIRED_VERSION} CONFIG REQUIRED Network Widgets Test DBus NetworkAuth)
if (QT_MAJOR_VERSION STREQUAL "5")
if (QT_MAJOR_VERSION STREQUAL "5" AND BUILD_TESTING)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED XmlPatterns)
endif()
find_package(Qt${QT_MAJOR_VERSION}WebEngineWidgets ${QT_REQUIRED_VERSION} CONFIG)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment