-
Notifications
You must be signed in to change notification settings - Fork 621
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
Correct OpenEXR/ImfHeader.h headers #1676
base: main
Are you sure you want to change the base?
Conversation
|
Signed-off-by: Henri Gasc <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very much approve changing public header includes to always be OpenEXR/Foo.h.
Is there any possible consequence to changing the order of the include files here?
It's time we did this, but I think it needs to be in the next major release. The fact that OpenEXR's own tests fail with this change is an indication about the problems here: To compile against OpenEXR it is not required to include the If you build with cmake and use |
There shouldn't be any, I just think it's more readable if the headers are separated according to their type (current directory, standard library, packages, etc.) |
Should I make a big PR that changes all the headers used (and the cmake files) ? |
Yes, I think it makes sense to change all the headers, and internal references to Imath in cpp files, to use #include when including Imath, and the build system needs updating too. I got a failure building this PR without providing Imath (so it has to download and build that as part of the OpenEXR build). It doesn't get the correct paths: It looks like bazel needs changing too, and possibly the build script that oss-fuzz uses (https://github.com/google/oss-fuzz/blob/master/projects/openexr/build.sh). I think any changes to oss-fuzz have to be accepted before the PR gets merged. That change should still make it possible to use either |
Fix #1043. The program compiles without any change to CMakeLists.txt.
I did not however try to link a program to this updated version of OpenEXR