-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 OpenEXR detection should detect library suffixes #71
Comments
Here are the libraries I currently have to symlink on the Mac: ln -s libHalf.12.0.0.dylib libHalf.dylib
|
Filed as internal issue #138130. |
Still fails to find OpenEXR libs on linux. |
OpenEXR library builds add suffixes on Windows and macOS, such as -
`Iex-2_2.dll
libIex-2_2.12.0.0.dylib
`
On Linux, the Cmake script doesn't fail because I imagine that the names have been resolved either through renaming or symlinks.
Linking against symlinked versions of the libraries is not user-friendly on Windows or macOS, because on those platforms users have the ability to move applications, and they do, no matter how many times you ask them not to do. So, linking against the real dylibs/dlls would be beneficial to end users.
The Cmake script goes to the trouble of extracting the OpenEXR version number, in the example case it discovers
2.2.0
Inconsistently, OpenEXR does not suffix Half.dll. Just throwing that out there as a note.
It would be very helpful if the Cmake detection script, after failing to find Iex.dll or Iex.dylib, ran again using a regex or something to allow for the fully suffixed libraries to be detected.
The text was updated successfully, but these errors were encountered: