OSX presets

This commit is contained in:
Corentin Jabot 2021-09-19 14:21:38 +02:00
parent 9330546e3a
commit c3555620e0
1 changed files with 38 additions and 11 deletions

View File

@ -21,9 +21,8 @@
{
"name": "x64-windows",
"description": "Sets x64 arch, compilers, build type",
"inherits": [
"base"
],
"generator": "Ninja",
"inherits": "base",
"architecture": {
"value": "x64",
"strategy": "external"
@ -55,9 +54,6 @@
"Linux"
]
}
},
"warnings": {
"dev": true
}
},
{
@ -75,9 +71,23 @@
"Linux"
]
}
}
},
{
"name": "osx",
"generator": "Ninja",
"description": "Compile on osx",
"inherits": "base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_COMPILER": "clang++"
},
"warnings": {
"dev": true
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": [
"macOS"
]
}
}
}
],
@ -90,7 +100,7 @@
"inheritConfigureEnvironment": true
},
{
"name": "windows-clean-build",
"name": "windows-build",
"description": "Clean before build (--clean-first)",
"configurePreset": "x64-windows",
"inherits": "core-build"
@ -104,6 +114,11 @@
"name": "linux-clang-build",
"configurePreset": "linux-clang",
"inherits": "core-build"
},
{
"name": "osx-build",
"configurePreset": "osx",
"inherits": "core-build"
}
],
"testPresets": [
@ -121,14 +136,26 @@
"description": "Run tests on linux (GCC)",
"configurePreset": "linux-gcc",
"displayName": "linux-test",
"inherits": ["core-tests"]
"inherits": [
"core-tests"
]
},
{
"name": "linux-test-clang",
"description": "Run tests on linux (Clang)",
"configurePreset": "linux-clang",
"displayName": "linux-test",
"inherits": ["core-tests"]
"inherits": [
"core-tests"
]
},
{
"name": "OSX test",
"description": "Run tests on Mac",
"configurePreset": "osx",
"inherits": [
"core-tests"
]
}
]
}