From 1f6a794b43001b605c6b912a5c25eb75be227a7b Mon Sep 17 00:00:00 2001 From: Mathis Logemann Date: Thu, 22 Jul 2021 22:54:22 +0200 Subject: [PATCH] add MAPNIK_DEBUG when using the mapnik debug configuration --- CMakePresets.json | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index 5477c3989..1c735bb7f 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -24,7 +24,8 @@ "displayName": "Linux clang debug", "inherits": "linux-clang", "cacheVariables": { - "CMAKE_BUILD_TYPE": "Debug" + "CMAKE_BUILD_TYPE": "Debug", + "MAPNIK_DEBUG": "ON" } }, { @@ -50,7 +51,8 @@ "displayName": "Linux gcc debug", "inherits": "linux-gcc", "cacheVariables": { - "CMAKE_BUILD_TYPE": "Debug" + "CMAKE_BUILD_TYPE": "Debug", + "MAPNIK_DEBUG": "ON" } }, { @@ -64,6 +66,7 @@ { "name": "windows-default", "displayName": "Windows x64 Debug", + "hidden": true, "generator": "Ninja", "binaryDir": "${sourceDir}/build/${presetName}", "architecture": { @@ -75,9 +78,9 @@ "strategy": "external" }, "cacheVariables": { - "CMAKE_BUILD_TYPE": "Debug", "CMAKE_C_COMPILER": "cl", - "CMAKE_CXX_COMPILER": "cl" + "CMAKE_CXX_COMPILER": "cl", + "MAPNIK_DEBUG": "ON" }, "vendor": { "microsoft.com/VisualStudioSettings/CMake/1.0": { @@ -87,6 +90,14 @@ } } }, + { + "name": "windows-default-debug", + "displayName": "Windows x64 Debug", + "inherits": "windows-default", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug" + } + }, { "name": "windows-default-release", "displayName": "Windows x64 Release",