Skip to content

Commit

Permalink
Add CMake flag for statically linked spirvcross
Browse files Browse the repository at this point in the history
  • Loading branch information
M. P. Halpin authored and flibitijibibo committed Oct 25, 2024
1 parent 174c9f6 commit 4118cde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 4118cde

Please sign in to comment.