– Hello, this topic is a continuation of this one, that got closed https://root-forum.cern.ch/t/wrong-definition-between-different-modules/63035. @pcanal @mczurylo
Hi @vvassilev ,
Yes, as I mentioned CLING_MODULEMAP_FILES, we can indeed tune the locations, but the cmake RootMacros doesn’t allow to change the filename module.modulemap
so modules get the same name and therefore needs to be put either in a subdirectories or merged. (merging is perhaps not the best option tough). If we could specify libXXX.modulemap
along side with libXXX.[so|dylib]
that would be wonderful.
Sorry, for my late reply. So I have done the necessary changes such that I use proper guards, but it didn’t fixed the issue.
#ifndef _MYHEADER_H_
#define _MYHEADER_H_
...
#endif
Then I try to arranged the paths of modulemap. Especially using the options:
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
However, this changes didn’t fixed the issue. I believe this issue might lie in the way .pcm binary is generated in ROOT_GENERATE_DICTIONARY. Could you help me confirm that?