diff options
Diffstat (limited to 'games/devilutionX/files/patch-CMake_Dependencies.cmake')
-rw-r--r-- | games/devilutionX/files/patch-CMake_Dependencies.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/games/devilutionX/files/patch-CMake_Dependencies.cmake b/games/devilutionX/files/patch-CMake_Dependencies.cmake new file mode 100644 index 000000000000..b5916c37a486 --- /dev/null +++ b/games/devilutionX/files/patch-CMake_Dependencies.cmake @@ -0,0 +1,13 @@ +--- CMake/Dependencies.cmake.orig 2022-07-25 04:41:06 UTC ++++ CMake/Dependencies.cmake +@@ -31,7 +31,9 @@ else() + if(DEVILUTIONX_SYSTEM_SDL2) + find_package(SDL2 REQUIRED) + if(TARGET SDL2::SDL2) +- set(SDL2_MAIN SDL2::SDL2main) ++ if(TARGET SDL2::SDL2main) ++ set(SDL2_MAIN SDL2::SDL2main) ++ endif() + elseif(TARGET SDL2::SDL2-static) + # On some distros, such as vitasdk, only the SDL2::SDL2-static target is available. + # Alias to SDL2::SDL2 because some finder scripts may refer to SDL2::SDL2. |