aboutsummaryrefslogtreecommitdiff
path: root/CMakePresets.json
blob: 1d75402d37dbc022f6b263156b05578fa95d5d1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
  "version": 6,
  "configurePresets": [
    {
      "name": "base",
      "hidden": true,
      "binaryDir": "${sourceDir}/build/${presetName}",
      "generator": "Ninja Multi-Config",
      "cacheVariables": {
        "CMAKE_CONFIGURATION_TYPES": "Debug;MinSizeRel",
        "CMAKE_EXPORT_COMPILE_COMMANDS": true,
        "CMAKE_VERIFY_INTERFACE_HEADER_SETS": true
      }
    },
    {
      "name": "x86_64",
      "description": "Target x86-64",
      "inherits": "base",
      "toolchainFile": "cmake/Platforms/x86_64.cmake",
      "cacheVariables": {
        "BUILD_TESTING": false
      }
    },
    {
      "name": "bht",
      "inherits": "base",
      "description": "Build-host Testing"
    },
    {
      "name": "bht-tsan",
      "inherits": "bht",
      "description": "Build-host Testing with ThreadSanitizer",
      "cacheVariables": {
        "TEACHOS_ENABLE_TEST_SANITIZERS": false,
        "TEACHOS_ENABLE_TEST_TSAN": true
      }
    }
  ],
  "buildPresets": [
    {
      "name": "x86_64-dbg",
      "configurePreset": "x86_64",
      "configuration": "Debug"
    },
    {
      "name": "x86_64-rel",
      "configurePreset": "x86_64",
      "configuration": "MinSizeRel"
    },
    {
      "name": "bht-dbg",
      "configurePreset": "bht",
      "configuration": "Debug"
    },
    {
      "name": "bht-tsan-dbg",
      "configurePreset": "bht-tsan",
      "configuration": "Debug"
    }
  ],
  "testPresets": [
    {
      "name": "bht-dbg",
      "configurePreset": "bht",
      "output": {
        "outputOnFailure": true
      },
      "execution": {
        "jobs": 0
      }
    },
    {
      "name": "bht-tsan-dbg",
      "configurePreset": "bht-tsan",
      "output": {
        "outputOnFailure": true
      },
      "execution": {
        "jobs": 1
      }
    }
  ]
}