CMake Presets setting source folder / build folder / other specific arguments

76 Views Asked by At

Is it possible to use cmake-presets to specify the build folder/source folder, other arguments other than the architecture or Release/Debug?

Example:

{
    "version": 3,
    "cmakeMinimumRequired": {
      "major": 3,
      "minor": 27,
      "patch": 0
    },
    "configurePresets": [
      {
        "name": "Release",
        "description": "Release configuration",
        "hidden": false,
        "cacheVariables": {
          "CMAKE_BUILD_TYPE": "Release"
        },
        "architecture":"x64"
        # This would not work
        "buildDirectory": "build/release"
      }
    ]
  }
0

There are 0 best solutions below