use different flag for vcpkg debug
authoralfadur
Thu, 15 Aug 2019 00:55:57 +0300
changeset 15323 360c24fe6071
parent 15322 e550096c2322
child 15324 9b470fff8499
use different flag for vcpkg debug
hedgewars/CMakeLists.txt
hedgewars/SDLh.pas
--- a/hedgewars/CMakeLists.txt	Wed Aug 14 23:38:35 2019 +0200
+++ b/hedgewars/CMakeLists.txt	Thu Aug 15 00:55:57 2019 +0300
@@ -191,6 +191,7 @@
 
 if (WIN32 AND VCPKG_TOOLCHAIN)
     add_definitions(-dWIN32_VCPKG)
+    add_flag_append(CMAKE_Pascal_FLAGS_DEBUG "-dVCPKG_DEBUG")
 endif()
 
 
--- a/hedgewars/SDLh.pas	Wed Aug 14 23:38:35 2019 +0200
+++ b/hedgewars/SDLh.pas	Thu Aug 15 00:55:57 2019 +0300
@@ -56,12 +56,6 @@
     type PLongInt = ^LongInt;
 {$ENDIF}
 
-{$IFDEF WIN32_VCPKG}
-{$IFDEF DEBUG}
-    {$DEFINE VCPKG_DEBUG}
-{$ENDIF}
-{$ENDIF}
-
 (*  SDL  *)
 const
 {$IFDEF WINDOWS}