Skip to content
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

[BUG] Remove FindOpenEXR.cmake #1740

Open
mwestphal opened this issue Dec 24, 2023 · 0 comments
Open

[BUG] Remove FindOpenEXR.cmake #1740

mwestphal opened this issue Dec 24, 2023 · 0 comments
Labels

Comments

@mwestphal
Copy link

The provided FindOpenEXR.cmake (and all other Find*.cmake really) is overriding OpenEXRConfig.cmake, which means that some dependency of OpenEXR may be missing.

In my specific case, OpenEXR is built with Imath, which FindOpenEXR.cmake is not providing, which result in

[ 21%] Building CXX object library/VTKExtensions/Readers/CMakeFiles/VTKExtensionsReaders.dir/vtkF3DEXRReader.cxx.o
In file included from /usr/include/OpenEXR/ImfRgbaFile.h:21,
                 from /home/glow/dev/f3d/f3d/src/library/VTKExtensions/Readers/vtkF3DEXRReader.cxx:11:
/usr/include/OpenEXR/ImfFrameBuffer.h:21:10: fatal error: ImathBox.h: No such file or directory
   21 | #include <ImathBox.h>
      |          ^~~~~~~~~~~~
compilation terminated.

Please let each library find themselves.

Removing FindOpenEXR.cmake seems to be resolving the issue for the general case but then I have strange unrelated macOS issues, so some care is needed here.

@mwestphal mwestphal added the bug label Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant