update sdl library name
authoralfadur
Wed, 14 Aug 2019 23:15:15 +0300
changeset 15316 3e34a014b6e8
parent 15315 90f9a0eac3ae
child 15317 e550096c2322
update sdl library name
hedgewars/CMakeLists.txt
hedgewars/SDLh.pas
--- a/hedgewars/CMakeLists.txt	Wed Aug 14 23:06:11 2019 +0300
+++ b/hedgewars/CMakeLists.txt	Wed Aug 14 23:15:15 2019 +0300
@@ -12,7 +12,7 @@
 
 enable_language(Pascal)
 add_flag_append(CMAKE_Pascal_FLAGS "-Cs2000000 -B")
-add_flag_append(CMAKE_Pascal_FLAGS_DEBUG "-gv")
+add_flag_append(CMAKE_Pascal_FLAGS_DEBUG "-gv -dDEBUG")
 add_flag_append(CMAKE_Pascal_FLAGS_RELEASE "-Xs")
 if(UNIX)
     include(TargetArch)
--- 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';