Skip to content

Commit 6c737a3

Browse files
WIN32: add option to use system SDL3 libraries
1 parent fefe379 commit 6c737a3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ project(openfodder VERSION 1.5.4 LANGUAGES CXX)
1414
set(CMAKE_CXX_STANDARD 14)
1515
option(OPENFODDER_ENABLE_FFMPEG "Enable FFmpeg intro video playback" OFF)
1616
option(OPENFODDER_AUTO_FFMPEG "Auto-enable FFmpeg when found (non-Windows)" ON)
17+
option(OPENFODDER_USE_SYSTEM_SDL3 "Use system SDL3 libraries (Windows-only)" OFF)
1718

1819
if(MSVC)
1920
# Enable Hot Reload (Edit and Continue) for Debug builds.
@@ -29,7 +30,7 @@ else()
2930
endif()
3031

3132
if(EMSCRIPTEN)
32-
elseif(WIN32)
33+
elseif(WIN32 AND NOT OPENFODDER_USE_SYSTEM_SDL3)
3334
include(FetchContent)
3435

3536
set(SDL_INSTALL OFF CACHE BOOL "" FORCE)

0 commit comments

Comments
 (0)