Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
"configurePresets": [
{
"name": "dev",
"displayName": "Developer build (local machine)",
"displayName": "Developer build (Linux/macOS)",
"description": "RelWithDebInfo, native tuning, compile-commands for tooling",
"binaryDir": "${sourceDir}/build/dev",
"binaryDir": "${sourceDir}/build/${presetName}",
"condition": {
"type": "notEquals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_CXX_FLAGS": "-march=native",
Expand All @@ -14,9 +19,9 @@
},
{
"name": "dev-msvc",
"displayName": "Developer build (MSVC)",
"displayName": "Developer build (Windows/MSVC)",
"description": "RelWithDebInfo with AVX2, compile-commands for tooling",
"binaryDir": "${sourceDir}/build/dev",
"binaryDir": "${sourceDir}/build/${presetName}",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
Expand All @@ -32,9 +37,10 @@
"name": "ci",
"displayName": "CI build",
"description": "Release build without machine-specific tuning",
"binaryDir": "${sourceDir}/build/ci",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
}
}
],
Expand All @@ -50,7 +56,8 @@
},
{
"name": "ci",
"configurePreset": "ci"
"configurePreset": "ci",
"configuration": "Release"
}
]
}
}
Loading