Fix using SDL2 submodule

This commit is contained in:
macmacmac 2025-07-03 01:21:17 -04:00
parent 904e9e436c
commit 1398521c86

View File

@ -25,7 +25,7 @@ file(GLOB SHADERS ${SHADER_DIR}/*.vert
option(SDL2_NONSYSTEM "Use SDL2 from folder in source tree" OFF)
if(SDL2_NONSYSTEM)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/SDL2 ${CMAKE_CURRENT_BINARY_DIR}/SDL2 EXCLUDE_FROM_ALL)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/SDL ${CMAKE_CURRENT_BINARY_DIR}/SDL2 EXCLUDE_FROM_ALL)
else()
find_package(SDL2 REQUIRED CONFIG REQUIRED COMPONENTS SDL2)
if(WIN32)