Wrong definition between different modules. (continuation)

– 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?

Hi @meyerma,

Thank you for your question. It would have been nice to continue the discussion in the original thread to keep full context. But no worries, let’s wait for a response. You’ve already tagged relevant people.

Cheers,
Dev

Hi, thank you. yeah, agreed, but there was an issue with the thread being locked. So I cannot write.

Feel free to merge if this is still possible.
Additionally, after doing further investigation.
There might be some connection between my issue and this comment root/cmake/modules/RootMacros.cmake at 14027977317f030535946b0a53fd3a0f34423f7d · root-project/root · GitHub

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.