From 4118cdea6dd13a369f9cc4f236547764982ed655 Mon Sep 17 00:00:00 2001 From: "M. P. Halpin" Date: Fri, 25 Oct 2024 14:09:33 -0400 Subject: [PATCH] Add CMake flag for statically linked spirvcross --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 480fe56d..b39f6d27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,6 +7,7 @@ project(FNA3D C) option(BUILD_SHARED_LIBS "Build shared library" ON) option(TRACING_SUPPORT "Build with tracing enabled" OFF) option(BUILD_SDL3 "Build against SDL 3.0" OFF) +option(MOJOSHADER_STATIC_SPIRVCROSS "Build against statically linked spirvcross" OFF) # Version SET(LIB_MAJOR_VERSION "0") @@ -73,6 +74,9 @@ endif() if(BUILD_SDL3) add_definitions(-DUSE_SDL3) endif() +if (MOJOSHADER_STATIC_SPIRVCROSS) + add_definitions(-DSDL_GPU_SHADERCROSS_STATIC) +endif() if(WIN32 OR BUILD_DXVK_NATIVE) add_definitions(