From a1c72b3d54ab81ce456a6483113a2d7276aa248a Mon Sep 17 00:00:00 2001 From: scawful Date: Sun, 1 Jan 2023 13:48:49 -0600 Subject: [PATCH] attempt SDL unix fix --- CMakeLists.txt | 8 ++++++-- src/lib/SDL | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b18f26f..51cc0ff6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,8 +35,12 @@ find_package(OpenGL REQUIRED) find_package(GLEW REQUIRED) # SDL2 ------------------------------------------------------------------------ -find_package(SDL2) -add_subdirectory(src/lib/SDL) +if (UNIX) + add_subdirectory(src/lib/SDL) +else() + find_package(SDL2) +endif() + # ImGui ----------------------------------------------------------------------- include(cmake/imgui.cmake) diff --git a/src/lib/SDL b/src/lib/SDL index 324c0b76..5b904a10 160000 --- a/src/lib/SDL +++ b/src/lib/SDL @@ -1 +1 @@ -Subproject commit 324c0b76a0111f0955063ac657617708208963ea +Subproject commit 5b904a103ad3bd58c13c82b11e32e97a91bafcfb