-
Notifications
You must be signed in to change notification settings - Fork 97
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 warnings on mcconfigurator #1578
Comments
So, CMake finds |
I see. So if I do nothing, CMake would still use the system libs for libz and libexpat? |
The question is what is your intention with putting those miniconda libs in your run-time config but different ones in your build time config. CMake is just warning you after all. If you do this intentionally, then you have your reasons, no? |
Sorry, I don't quite understand it. By "run-time config", I guess you meant the configuration set with With "build time config", do you mean the |
The question probably is why do you need the miniconda environment when installing FairRoot. |
https://man7.org/linux/man-pages/man8/ld.so.8.html subsection Environment Variables
No,
|
Thanks for your detailed explanation. It clears up many things for me. I checked again with my conda environment. It actually doesn't set So I open the
So CMake does use Therefore, simply specifying zlib path with cmake -Dyaml-cpp_ROOT=/usr/lib/x86_64-linux-gnu/cmake/yaml-cpp .. But should we put yaml-cpp into FairSoft such that CMake could find it using |
I don't follow in all details. Can you share your CMakeCache.txt or at least the entries for expat and zlib? (when the original warning happens without specifying additional hints as discussed here) |
I think your findings are correct. Geant4VMC and Geant4 libraries link against libz and libexpat which in your case where found in the system. When compiling FairRoot geant4vmc and yaml-cpp are required as dependencies for MCConfigurator which come with conflicting requirements for libz and and libexpat. Did you use your miniconda environment also when compiling FairSoft? |
Hi, @dennisklein Here is the CMakeCache.txt generated in conda environment: |
Hi, @fuhlig1 I don't think I did. But it would be nice if FairSoft also contains yaml-cpp by itself and then everything would be compatible with each other. There will be always some problems if we just let CMake find yaml-cpp in whatever way. |
Describe the bug
When configuring FairRoot CMake in a conda environment, following warning is given by CMake:
System information (please complete the following information):
The text was updated successfully, but these errors were encountered: