-
Notifications
You must be signed in to change notification settings - Fork 11
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
Use and depend on system libraries. #108
Comments
HDRView uses CPM.cmake as I have found this dramatically reduces build issues. If you want to check for system libraries first, I believe you can set an option to have CPM look for these first, but I haven't tested this. |
But this looks like it wants to have source code of the libraries, and compiled libraries + include files are not enough? Hm. |
No, I believe that if you set the |
This still will download openexr into And later it fails while linking:
.. so maybe it uses the downloaded OpenEXR to build against it, and then tries to use the system OpenEXR to link against it? I don't know. |
I don't know either, as this is not a use case for me. One of the reasons I use CPM and download source is precisely to avoid such issues across platforms (previously I would use git submodules, but prefer CPM). This also allows me to use modified versions of libraries (by referencing specific forked github repos), which is sometimes necessary. In case it's helpful for you, a test only partially worked on my end. It indicated that it used the locally installed version of e.g. imath (though i don't have installed versions of many of the other dependencies, so it fails to download those):
|
Ahoj,
thanks for the software!
Your build system fetches and uses dependencies on it's own (e.g. iMath, OpenEXR). This is undesirable on Unix-systems, where it is desirable and clean to use system libraries.
Can you update your build system to have an easy switch to to
Regards!
The text was updated successfully, but these errors were encountered: