Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

cmake: enable VA-API on more Unix-like after e52d5fa5534a

Jan Beich59e8683b80b6
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 18d553f4d0..7d9056aa3c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -508,7 +508,7 @@ set(FFmpeg_COMPONENTS
avutil
swscale)
-if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
+if (UNIX AND NOT APPLE)
Include(FindPkgConfig REQUIRED)
pkg_check_modules(LIBVA libva)
endif()