--- 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';