mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-29 07:58:42 +01:00
CMake: Disable VST (GTK) when gdk-x11-3.0 isn't found [wayland]
The VST plugin done via GTK for non-apple & non-windows pulls <gdk/gdkx.h>, which is specific to X11 and thus isn't available in a pure-wayland system. This disables it automatically. Closes: https://github.com/tenacityteam/tenacity/issues/614 Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
@@ -798,6 +798,13 @@ endif()
|
||||
if( NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|Windows" )
|
||||
find_package( GLIB REQUIRED )
|
||||
find_package( GTK 3.0 REQUIRED )
|
||||
pkg_check_modules(GDK3_X11 gdk-x11-3.0)
|
||||
endif()
|
||||
|
||||
if( NOT CMAKE_SYSTEM_NAME MATCHES "Darwin|Windows" )
|
||||
cmake_dependent_option( USE_VST "Use VST2 plug-in support [ON, OFF]" ON "GDK3_X11_FOUND" OFF)
|
||||
else()
|
||||
cmd_option( USE_VST "Use VST2 plug-in support [ON, OFF]" ON)
|
||||
endif()
|
||||
|
||||
if( NOT WIN32 )
|
||||
|
||||
Reference in New Issue
Block a user