Skip to content

Commit

Permalink
Add CMake presets
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonis committed Feb 6, 2025
1 parent 82f5ea2 commit e90ac85
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"version": 3,
"configurePresets": [
{
"name": "base",
"hidden": true,
"binaryDir": "${sourceDir}/build"
},
{
"name": "production",
"inherits": "base",
"displayName": "Production release",
"description": "Release configuration for preCICE used in production.",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_INTERPROCEDURAL_OPTIMIZATION": "ON"
}
},
{
"name": "development",
"inherits": "base",
"displayName": "Development",
"description": "Development config with default settings",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wno-unused-parameter"
},
"warnings": {
"dev": true,
"deprecated": true,
"uninitialized": true
}
},
{
"name": "profiling",
"inherits": "development",
"displayName": "Profiling",
"description": "Profiling configuration",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_INTERPROCEDURAL_OPTIMIZATION": "ON",
"CMAKE_CXX_FLAGS": "-Wall -Wextra -Wno-unused-parameter -fno-omit-frame-pointer"
}
}
]
}

0 comments on commit e90ac85

Please sign in to comment.