forked from openenclave/openenclave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeSettings.json
61 lines (60 loc) · 2.34 KB
/
CMakeSettings.json
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
{
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
//
// This file illustrates CMake settings to use for building and testing
// Open Enclave SDK from Visual 2017. It is based on the default
// CMakeSettings.json.
// Prerequisites:
// 1. clang (preferable clang-8) must be installed on the machine
// The following programs must be available in the path:
// clang
// llvm-ar
// ld.lld
// 2. bash (Git's bash or WSL bash) must be available in the path.
//
// The following 3 configurations are available for building with
// Visual Studio 2017:
// x64-Debug
// x64-RelWithDebInfo
// x64-Release
// Each configuration has its corresponding build folder under
// ${workspaceRoot}/build/<configuration-name>
// For more information on editing CMakeSettings.json, refer to
// https://go.microsoft.com//fwlink//?linkid=834763
"configurations": [
{
"name": "x64-Debug",
"generator": "Ninja",
"configurationType": "Debug",
"inheritEnvironments": [ "msvc_x64_x64" ],
"buildRoot": "${workspaceRoot}\\build\\x64-Debug",
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
"cmakeCommandArgs": "-DBUILD_ENCLAVES=ON -DNUGET_PACKAGE_PATH=${workspaceRoot}\\prereqs\\nuget",
"buildCommandArgs": "-v",
"ctestCommandArgs": ""
},
{
"name": "x64-RelWithDebInfo",
"generator": "Ninja",
"configurationType": "RelWithDebInfo",
"inheritEnvironments": [ "msvc_x64_x64" ],
"buildRoot": "${workspaceRoot}\\build\\x64-RelWithDebInfo",
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
"cmakeCommandArgs": "-DBUILD_ENCLAVES=ON -DNUGET_PACKAGE_PATH=${workspaceRoot}\\prereqs\\nuget",
"buildCommandArgs": "-v",
"ctestCommandArgs": ""
},
{
"name": "x64-Release",
"generator": "Ninja",
"configurationType": "Release",
"inheritEnvironments": [ "msvc_x64_x64" ],
"buildRoot": "${workspaceRoot}\\build\\x64-Release",
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
"cmakeCommandArgs": "-DBUILD_ENCLAVES=ON -DNUGET_PACKAGE_PATH=${workspaceRoot}\\prereqs\\nuget",
"buildCommandArgs": "-v",
"ctestCommandArgs": ""
}
]
}