hedgewars/SDLh.pas
changeset 15337 3e34a014b6e8
parent 15335 fe705efbfc52
child 15339 360c24fe6071
--- a/hedgewars/SDLh.pas	Wed Aug 14 23:06:11 2019 +0300
+++ b/hedgewars/SDLh.pas	Wed Aug 14 23:15:15 2019 +0300
@@ -56,11 +56,16 @@
     type PLongInt = ^LongInt;
 {$ENDIF}
 
+{$IFDEF WIN32_VCPKG}
+{$IFDEF DEBUG}
+    {$DEFINE VCPKG_DEBUG}
+{$ENDIF}
+{$ENDIF}
 
 (*  SDL  *)
 const
 {$IFDEF WINDOWS}
-    SDLLibName = 'SDL2.dll';
+    SDLLibName = {$IFDEF VCPKG_DEBUG}'SDL2d.dll'{$ELSE}'SDL2.dll'{$ENDIF};
     SDL_TTFLibName = 'SDL2_ttf.dll';
     SDL_MixerLibName = 'SDL2_mixer.dll';
     SDL_ImageLibName = 'SDL2_image.dll';