Skip to content
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

Cmake fixes to clean up warnings during compilation #350

Merged
merged 36 commits into from
Dec 23, 2022
Merged

Conversation

jgalan
Copy link
Member

@jgalan jgalan commented Dec 13, 2022

jgalan Large: 1441

This PR will avoid some warnings that appear during compilation.

Some warnings seem to be related to the fact that we were generating dictionaries for classes that do not inherit from Object. This is my guess.

  • Updated MacroRootDict.cmake so that dictionary is not generated for some classes that do not inherit from TObject, and/or just do not need dictionary.

I implemented a patch the best I could at make/MacroRootDict.cmake, do not hesitate to improve the implementation of the present patch if you find a better way.

Now compilation warnings will be considered errors so the pipeline will fail in case there are any warnings.

IMPORTANT. There are still a number of warnings that are hidden from the user, because I didn't manage to solve.

We may compile using -DCMAKE_BUILD_TYPE=Debug to show all warnings.

Other related PRs that MUST be merged together with this PR.

rest-for-physics/restG4#89
rest-for-physics/geant4lib#82
rest-for-physics/axionlib#43
rest-for-physics/tracklib#26
rest-for-physics/wimplib#4
rest-for-physics/rawlib#90
rest-for-physics/detectorlib#64
rest-for-physics/connectorslib#22

@jgalan jgalan changed the title Jgalan cmake fix Cmake fixes to clean up warnings during compilation Dec 13, 2022
@jgalan jgalan marked this pull request as ready for review December 14, 2022 20:24
@jgalan jgalan requested review from lobis, nkx111 and juanangp December 14, 2022 20:24
CMakeLists.txt Outdated Show resolved Hide resolved
Co-authored-by: Luis Antonio Obis Aparicio <35803280+lobis@users.noreply.github.com>
jgalan and others added 8 commits December 19, 2022 09:57
Co-authored-by: Luis Antonio Obis Aparicio <35803280+lobis@users.noreply.github.com>
Co-authored-by: Luis Antonio Obis Aparicio <35803280+lobis@users.noreply.github.com>
Co-authored-by: Luis Antonio Obis Aparicio <35803280+lobis@users.noreply.github.com>
Co-authored-by: Luis Antonio Obis Aparicio <35803280+lobis@users.noreply.github.com>
Co-authored-by: Luis Antonio Obis Aparicio <35803280+lobis@users.noreply.github.com>
@jgalan jgalan requested review from lobis and juanangp December 19, 2022 15:41
@jgalan jgalan requested a review from a team December 22, 2022 09:42
@jgalan jgalan merged commit 0e09164 into master Dec 23, 2022
@jgalan jgalan deleted the jgalan_cmake_fix branch December 23, 2022 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants