-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openPMD: add software name version #380
openPMD: add software name version #380
Conversation
Pinging @ax3l for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! 👍
Do you mind isolating the IDE-related changes and the I/O-related ones in two PRs? :)
CMakeLists.txt
Outdated
# generate compile_commands.json | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
# and place it in the source directory https://stackoverflow.com/a/60910583 | ||
add_custom_target( | ||
copy-compile-commands ALL | ||
${CMAKE_COMMAND} -E copy_if_different | ||
${CMAKE_BINARY_DIR}/compile_commands.json ${CMAKE_CURRENT_LIST_DIR}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need the compile_commands.json
?
Does your IDE not support CMake directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compile_commands.json is used by the C++ LSP (clangd) to parse the source files. Other build systems such as meson/bazel/etc can also generate it, so it not really CMake
specific.
There are tools like Bear that can generate compile_commands.json, but generating it alongside the build reduces the number of tools needed.
modified: src/particles/elements/diagnostics/openPMD.cpp
aa8f87b
to
12677f2
Compare
Done: #381 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Please note the updated spelling I introduced in the last commit :)
Add software name and version as attributes to openPMD outputs.