Correct OpenEXR/ImfHeader.h headers#1676
Correct OpenEXR/ImfHeader.h headers#1676henri-gasc wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
Conversation
|
|
Signed-off-by: Henri Gasc <gasc@eurecom.fr>
lgritz
left a comment
There was a problem hiding this comment.
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