CMake: use correct media sources in WXQT build

Only check for gstreamer in Unix GTK builds.

Closes #18945
This commit is contained in:
Maarten Bent
2020-10-18 14:51:37 +02:00
parent 6862cdd0cd
commit 0417dabdbd
2 changed files with 3 additions and 3 deletions

View File

@@ -447,7 +447,7 @@ if(wxUSE_GUI)
endif()
endif()
if(wxUSE_MEDIACTRL AND UNIX AND NOT APPLE AND NOT WIN32)
if(wxUSE_MEDIACTRL AND WXGTK AND NOT APPLE AND NOT WIN32)
find_package(GSTREAMER 1.0 COMPONENTS video)
if(NOT GSTREAMER_FOUND)
find_package(GSTREAMER 0.10 COMPONENTS interfaces)