Add CMakePresets.json for better IDE and build system integration#6806
Merged
hkaiser merged 6 commits intoSTEllAR-GROUP:masterfrom Jan 1, 2026
Merged
Add CMakePresets.json for better IDE and build system integration#6806hkaiser merged 6 commits intoSTEllAR-GROUP:masterfrom
hkaiser merged 6 commits intoSTEllAR-GROUP:masterfrom
Conversation
|
Can one of the admins verify this patch? |
Pansysk75
reviewed
Nov 17, 2025
Contributor
Author
There was a problem hiding this comment.
here some changes in code you can review it:
{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 19,
"patch": 0
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/cmake-build-${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"HPX_WITH_MALLOC": "tcmalloc",
"HPX_WITH_NETWORKING": "ON",
"HPX_WITH_PARCELPORT_TCP": "ON"
}
},
{
"name": "release",
"displayName": "Release build with optimizations",
"inherits": "base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_CXX_FLAGS": "-O3 -DNDEBUG"
}
},
{
"name": "debug",
"displayName": "Debug build with debug symbols",
"inherits": "base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"HPX_WITH_DEBUGGING": "ON",
"HPX_WITH_LOGGING": "ON",
"HPX_WITH_STACKOVERFLOW_DETECTION": "ON",
"HPX_WITH_THREAD_BACKTRACE_ON_SUSPENSION": "ON"
}
},
{
"name": "relwithdebinfo",
"displayName": "Release with debug info",
"inherits": "base",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
"name": "minimal",
"displayName": "Minimal build with essential features",
"inherits": "base",
"cacheVariables": {
"HPX_WITH_EXAMPLES": "OFF",
"HPX_WITH_TESTS": "OFF",
"HPX_WITH_DOCUMENTATION": "OFF",
"HPX_WITH_TOOLS": "OFF",
"HPX_WITH_PARCELPORT_MPI": "OFF",
"HPX_WITH_PARCELPORT_TCP": "ON"
}
},
{
"name": "full",
"displayName": "Full build with all features",
"inherits": "base",
"cacheVariables": {
"HPX_WITH_EXAMPLES": "ON",
"HPX_WITH_TESTS": "ON",
"HPX_WITH_DOCUMENTATION": "ON",
"HPX_WITH_TOOLS": "ON",
"HPX_WITH_ASYNC_MPI": "ON",
"HPX_WITH_PARCELPORT_MPI": "AUTO",
"HPX_WITH_PARCELPORT_TCP": "ON",
"HPX_WITH_PARCELPORT_LCI": "AUTO",
"HPX_WITH_APEX": "AUTO"
}
},
{
"name": "mpi",
"displayName": "MPI-enabled build",
"inherits": "release",
"cacheVariables": {
"HPX_WITH_PARCELPORT_MPI": "ON",
"MPI_CXX_COMPILER": "mpicxx"
}
},
{
"name": "asan",
"displayName": "Address Sanitizer build",
"inherits": "debug",
"cacheVariables": {
"CMAKE_CXX_FLAGS": "-fsanitize=address -fno-omit-frame-pointer"
}
},
{
"name": "tsan",
"displayName": "Thread Sanitizer build",
"inherits": "debug",
"cacheVariables": {
"HPX_WITH_SANITIZERS": "thread",
"HPX_WITH_COMPILER_SANITIZERS": "thread"
}
},
{
"name": "ubsan",
"displayName": "Undefined Behavior Sanitizer build",
"inherits": "debug",
"cacheVariables": {
"HPX_WITH_SANITIZERS": "undefined",
"HPX_WITH_COMPILER_SANITIZERS": "undefined"
}
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "release",
"configuration": "Release"
},
{
"name": "debug",
"configurePreset": "debug",
"configuration": "Debug"
},
{
"name": "relwithdebinfo",
"configurePreset": "relwithdebinfo",
"configuration": "RelWithDebInfo"
}
],
"testPresets": [
{
"name": "default",
"configurePreset": "debug",
"configuration": "Debug",
"output": {"outputOnFailure": true}
},
{
"name": "release",
"configurePreset": "release",
"configuration": "Release",
"output": {"outputOnFailure": true}
}
]
}
Member
|
@Adityabaskati-weeb Would it be possible to make those changes in-code? It will be easier to review. Thanks! |
Contributor
Author
ohk |
hkaiser
reviewed
Nov 22, 2025
Member
|
@Adityabaskati-weeb Hi, if I may make a suggestion, let's keep this pull request limited to the CMakeUserPresets.json, keeping it as simple as we can. |
Changed HPX_WITH_PARCELPORT_MPI to STRING to allow auto-detection when empty. Fixed invalid flags and structure in CMakePresets.json. Signed-off-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>
Reformatted CMakeLists.txt to satisfy cmake-format. Disabled MPI in configure_test_combinations job in CircleCI.
bc53d4b to
99f496d
Compare
- This rolls back the changes related to the MPI configuration Signed-off-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>
99f496d to
40cfa28
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds a CMakePresets.json file to provide pre-defined build configurations for HPX.
Key Benefits:
Included Presets:
Usage: