-
Notifications
You must be signed in to change notification settings - Fork 60
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
Generated cc files are deleted on cmake --target clear #396
Comments
What you are asking for is not trivial to do, see https://gitlab.kitware.com/cmake/community/-/wikis/FAQ#cmake-does-not-generate-a-make-distclean-target-why |
I tend to agree that
That sounds like a small bug regardless of the rest. In principle all generated files should be removed via the SET_PROPERTIES(SOURCE ${headers} PROPERTY GENERATED TRUE) I am not entirely sure why this is working for the Taking all this into account I think we could remove the |
Keep them in place even if the clean target is specified. See AIDASoft#396
Keep them in place even if the clean target is specified. See #396
TL;DR; Clean removes all .cc files but leaves everything else
On configuration stage cmake generates files for data model:
When one runs
Clean removes all .cc files but leaves all other generated files.
What is anticipated:
Since file generation is done only on the first configuration stage I would prefer that
clean
would not touch any of generated files. In my development workflow which I believe to be common, in terms of build steps I do something like this:Also IDE-s usually have an option like "Rebuild project" which is "clean+build" for projects with podio data model that will always fail.
P.S. even if you would not agree on anticipated
clean
behavior, there is an issue that some generated files are deleted but others - are notThe text was updated successfully, but these errors were encountered: