diff --git a/build/cmake/init.cmake b/build/cmake/init.cmake index 166b90412b..52678cbc49 100644 --- a/build/cmake/init.cmake +++ b/build/cmake/init.cmake @@ -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) diff --git a/build/cmake/lib/media/CMakeLists.txt b/build/cmake/lib/media/CMakeLists.txt index 4a0aa959c8..e4a9497820 100644 --- a/build/cmake/lib/media/CMakeLists.txt +++ b/build/cmake/lib/media/CMakeLists.txt @@ -17,7 +17,7 @@ elseif(WXOSX_COCOA) wx_append_sources(MEDIA_FILES MEDIA_OSX_COCOA) elseif(WXOSX_IPHONE) wx_append_sources(MEDIA_FILES MEDIA_OSX_IPHONE) -elseif(UNIX) +elseif(WXGTK) wx_append_sources(MEDIA_FILES MEDIA_UNIX) elseif(WXQT) wx_append_sources(MEDIA_FILES MEDIA_QT) @@ -30,7 +30,7 @@ if(WXOSX) "-framework CoreMedia" "-weak_framework AVKit" ) -elseif(UNIX) +elseif(WXGTK) wx_lib_include_directories(wxmedia PUBLIC ${GSTREAMER_INCLUDE_DIRS}) if(GSTREAMER_INTERFACES_INCLUDE_DIRS) wx_lib_include_directories(wxmedia PUBLIC ${GSTREAMER_INTERFACES_INCLUDE_DIRS})