diff options
Diffstat (limited to 'CMakePresets.json')
| -rw-r--r-- | CMakePresets.json | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/CMakePresets.json b/CMakePresets.json index 47a733ee2..0e53295e7 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -18,7 +18,7 @@ { "name": "emscripten", "description": "Emscripten-based Wasm build", - "generator": "ninja", + "generator": "Ninja Multi-Config", "binaryDir": "${sourceDir}/build.em", "cacheVariables": { "SLANG_SLANG_LLVM_FLAVOR": "DISABLE", @@ -34,7 +34,8 @@ "description": "Options specific for MSVC", "cacheVariables": { "CMAKE_C_FLAGS_INIT": "-D_ITERATOR_DEBUG_LEVEL=0 /MP", - "CMAKE_CXX_FLAGS_INIT": "-D_ITERATOR_DEBUG_LEVEL=0 /MP" + "CMAKE_CXX_FLAGS_INIT": "-D_ITERATOR_DEBUG_LEVEL=0 /MP", + "CMAKE_DEFAULT_BUILD_TYPE": "RelWithDebInfo" } }, { @@ -87,6 +88,11 @@ "configuration": "Release" }, { + "name": "releaseWithDebugInfo", + "configurePreset": "default", + "configuration": "RelWithDebInfo" + }, + { "name": "emscripten", "configurePreset": "emscripten", "configuration": "Release", @@ -133,6 +139,14 @@ "packageDirectory": "dist-release" }, { + "name": "releaseWithDebugInfo", + "inherits": "base", + "configurations": [ + "RelWithDebInfo" + ], + "packageDirectory": "dist-releaseWithDebugInfo" + }, + { "name": "debug", "inherits": "base", "configurations": [ @@ -195,6 +209,23 @@ ] }, { + "name": "releaseWithDebugInfo", + "steps": [ + { + "type": "configure", + "name": "default" + }, + { + "type": "build", + "name": "releaseWithDebugInfo" + }, + { + "type": "package", + "name": "releaseWithDebugInfo" + } + ] + }, + { "name": "generators", "steps": [ { |
