Skip to content

Instantly share code, notes, and snippets.

@sweemer
Created October 13, 2021 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sweemer/c86f205058ad4d3de54b33ad2afb827e to your computer and use it in GitHub Desktop.
Save sweemer/c86f205058ad4d3de54b33ad2afb827e to your computer and use it in GitHub Desktop.
CMakePresets.json for QuantLib
{
"version": 2,
"configurePresets": [
{
"name": "linux-clang-debug",
"binaryDir": "${sourceDir}/build",
"generator": "Unix Makefiles",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "linux-clang-release",
"binaryDir": "${sourceDir}/build",
"generator": "Unix Makefiles",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_COMPILER": "clang++"
}
},
{
"name": "linux-gcc-debug",
"binaryDir": "${sourceDir}/build",
"generator": "Unix Makefiles",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "linux-gcc-release",
"binaryDir": "${sourceDir}/build",
"generator": "Unix Makefiles",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_COMPILER": "g++"
}
},
{
"name": "windows-clang-x64",
"binaryDir": "${sourceDir}/build",
"generator": "Visual Studio 16 2019",
"toolset": "ClangCL",
"architecture": {
"value": "x64",
"strategy": "external"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"intelliSenseMode": "windows-clang-x64",
"hostOS": [
"Windows"
]
}
}
},
{
"name": "windows-msvc-x64",
"binaryDir": "${sourceDir}/build",
"generator": "Visual Studio 16 2019",
"architecture": {
"value": "x64",
"strategy": "external"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"intelliSenseMode": "windows-msvc-x64",
"hostOS": [
"Windows"
]
}
}
}
],
"buildPresets": [
{
"name": "linux-clang-debug",
"configurePreset": "linux-clang-debug"
},
{
"name": "linux-clang-release",
"configurePreset": "linux-clang-release"
},
{
"name": "linux-gcc-debug",
"configurePreset": "linux-gcc-debug"
},
{
"name": "linux-gcc-release",
"configurePreset": "linux-gcc-release"
},
{
"name": "windows-clang-x64-debug",
"configurePreset": "windows-clang-x64",
"configuration": "Debug"
},
{
"name": "windows-clang-x64-release",
"configurePreset": "windows-clang-x64",
"configuration": "Release"
},
{
"name": "windows-msvc-x64-debug",
"configurePreset": "windows-msvc-x64",
"configuration": "Debug"
},
{
"name": "windows-msvc-x64-release",
"configurePreset": "windows-msvc-x64",
"configuration": "Release"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment