I’m getting a weird error during the CMake invocation stage (version
CMake Error at cmake/Modules/G4DeveloperAPI.cmake:425 (message): geant4_add_category: trying to compose category 'G4analysis' using module 'G4accumulables' which is already composed into category '1' Call Stack (most recent call first): cmake/Modules/G4DeveloperAPI.cmake:650 (geant4_add_category) source/analysis/CMakeLists.txt:31 (geant4_global_library_target)
This is the Docker file that reproduces the issue: remage-docker/Dockerfile.G4-10-7 at 072e5a8bcf505326d402e120955dee2505834cb0 · gipert/remage-docker · GitHub.
The weird thing is that this seems to be related to the way I install ROOT in the container. If I install the official binaries I can build G4 without any trouble, if I build ROOT from source I get the CMake error. Maybe it’s because of the build flags I’m using? I’ve got no clue.
I’ll continue investigating, I just wanted to know if build system developers have an idea about what is going on here.