Fix preset for debug build with MSVC

* The preset must inherit from "debug" first so the build type is
  not overridden
* Use the debug library of cppunit
* Avoid configuring ccache which is not generally used under
  Windows
This commit is contained in:
Martchus 2023-05-01 19:25:18 +02:00
parent cb5ca77658
commit 5425488421
1 changed files with 7 additions and 2 deletions

View File

@ -238,10 +238,15 @@
},
{
"name": "win-x64-msvc-static-debug",
"inherits": ["win-x64-msvc-static-devel", "debug"],
"inherits": ["debug", "win-x64-msvc-static-devel"],
"displayName": "Combination of debug and win-x64-msvc-static",
"description": "See descriptions of debug and win-x64-msvc-static",
"binaryDir": "$env{BUILD_DIR}/${sourceDirName}/win-x64-msvc-static-debug"
"binaryDir": "$env{BUILD_DIR}/${sourceDirName}/win-x64-msvc-static-debug",
"cacheVariables": {
"CMAKE_C_COMPILER_LAUNCHER": {"type": "STRING", "value": ""},
"CMAKE_CXX_COMPILER_LAUNCHER": {"type": "STRING", "value": ""},
"CPP_UNIT_LIB": {"type": "FILEPATH", "value": "$env{VCPKG_ROOT}/installed/x64-windows-static/debug/lib/cppunitd.lib"}
}
}
],
"buildPresets": [