From 1073e4feadde3b257a294c9d8730731c9f827af2 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sat, 8 Aug 2026 10:08:08 -0400 Subject: [PATCH] build(unix): add nv-codec-headers include path Update `common.cmake` to add a non-Windows fallback include directory for `nv-codec-headers` under the third-party FFmpeg build deps. This keeps CUDA/NV codec headers discoverable outside WIN32 builds while preserving the existing Windows-specific include path. --- cmake/compile_definitions/common.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/compile_definitions/common.cmake b/cmake/compile_definitions/common.cmake index 502c9d63d2a..7e733bb94e5 100644 --- a/cmake/compile_definitions/common.cmake +++ b/cmake/compile_definitions/common.cmake @@ -199,6 +199,11 @@ include_directories( if(WIN32) include_directories(BEFORE SYSTEM "${NV_CODEC_HEADERS_13_INCLUDE_DIR}") +else() + include_directories( + BEFORE SYSTEM + "${CMAKE_SOURCE_DIR}/third-party/build-deps/third-party/FFmpeg/nv-codec-headers/include" + ) endif() list(APPEND SUNSHINE_EXTERNAL_LIBRARIES