https://blogs.msdn.microsoft.com/vcblog/2017/08/14/cmake-support-in-visual-studio-customizing-your-environment/ にあるやつを ninja ではなく MSBuild 用に改変

Formato
JavaScript
Post date
2017-11-11 14:41
Publication Period
Unlimited
  1. {
  2. // The "environments" property is an array of key value pairs of the form
  3. // { "EnvVar1": "Value1", "EnvVar2": "Value2" }
  4. "environments": [
  5. {
  6. "BuildDir": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build"
  7. }
  8. ],
  9. "configurations": [
  10. {
  11. "name": "x86-Debug",
  12. "generator": "Visual Studio 15 2017",
  13. "configurationType": "Debug",
  14. // Inherit the defaults for using the MSVC x86 compiler.
  15. "inheritEnvironments": [ "msvc_x86" ],
  16. "buildRoot": "${env.BuildDir}\\${name}"
  17. },
  18. {
  19. "name": "x86-Release",
  20. "generator": "Visual Studio 15 2017",
  21. "configurationType": "Release",
  22. // Inherit the defaults for using the MSVC x86 compiler.
  23. "inheritEnvironments": [ "msvc_x86" ],
  24. "buildRoot": "${env.BuildDir}\\${name}"
  25. },
  26. {
  27. "name": "x64-Debug",
  28. "generator": "Visual Studio 15 2017 Win64",
  29. "configurationType": "Debug",
  30. // Inherit the defaults for using the MSVC x64 compiler.
  31. "inheritEnvironments": [ "msvc_x64" ],
  32. "buildRoot": "${env.BuildDir}\\${name}"
  33. },
  34. {
  35. "name": "x64-Release",
  36. "generator": "Visual Studio 15 2017 Win64",
  37. "configurationType": "Release",
  38. // Inherit the defaults for using the MSVC x64 compiler.
  39. "inheritEnvironments": [ "msvc_x64" ],
  40. "buildRoot": "${env.BuildDir}\\${name}"
  41. }
  42. ]
  43. }
Descargar Printable view

URL of this paste

Embed with JavaScript

Embed with iframe

Raw text