diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-13 10:27:25 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-13 10:30:19 +0100 |
commit | d647445468525722c4361277180f7584b8863496 (patch) | |
tree | f936dbb65fda58d725770291de3818d5f9625d80 | |
parent | b8f7747d79cbe41b75c5e2fa63f600954be07092 (diff) |
fix sdl2 as non-submodule on my Arch Linux
-rw-r--r-- | external/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index df0de0dc..7aa9b2b6 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -235,6 +235,9 @@ set(system "") if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.25) set(system "SYSTEM") endif() +if(NOT FLOORMAT_SUBMODULE-DEPENDENCIES OR NOT FLOORMAT_SUBMODULE-SDL2) + add_subdirectory(sdl2 ${system}) +endif() if(FLOORMAT_SUBMODULE-DEPENDENCIES) sets(PATH IMGUI_DIR "${CMAKE_CURRENT_SOURCE_DIR}/imgui") |