Skip to content

update include directives for OpenImageIO_ROOT#1997

Merged
lgritz merged 1 commit into
AcademySoftwareFoundation:mainfrom
cmstein:oiio_include_cmake_fixes
Jun 13, 2025
Merged

update include directives for OpenImageIO_ROOT#1997
lgritz merged 1 commit into
AcademySoftwareFoundation:mainfrom
cmstein:oiio_include_cmake_fixes

Conversation

@cmstein

@cmstein cmstein commented Jun 10, 2025

Copy link
Copy Markdown
Collaborator

Description

Adds directives to prioritize the includes from $OpenImageIO_ROOT in case there is an older (or newer!) system install of OpenImageIO. Without this, OSL might use the includes in /usr/include/OpenImageIO yet link to the libraries in OpenImageIO_ROOT thus producing namespace clashes.

Tests

tests pass excdept for '987 - render-microfacet.opt', but I get the same failure for main.

Checklist:

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable.
  • I have ensured that the change is tested somewhere in the testsuite (adding new test cases if necessary).
  • My code follows the prevailing code style of this project. If I haven't
    already run clang-format v17 before submitting, I definitely will look at
    the CI test that runs clang-format and fix anything that it highlights as
    being nonconforming.

@lgritz

lgritz commented Jun 10, 2025

Copy link
Copy Markdown
Collaborator

Needs DCO signoff

@lgritz lgritz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lgritz

lgritz commented Jun 10, 2025

Copy link
Copy Markdown
Collaborator

On a one-commit PR like this, you should be able to do the DCO fix as simply as:

$ git commit -s --amend
$ git push origin oiio_include_cmake_fixes --force

OpenImageIO_ROOT  (in case there is a system installed OpenImageIO
in the usual places)

Signed-off-by: Clifford Stein <cstein@imageworks.com>
@cmstein
cmstein force-pushed the oiio_include_cmake_fixes branch from f5dd54d to aeaf97b Compare June 11, 2025 15:13
@lgritz
lgritz merged commit 2f6507d into AcademySoftwareFoundation:main Jun 13, 2025
25 checks passed
lgritz pushed a commit to lgritz/OpenShadingLanguage that referenced this pull request Jul 2, 2025
…eFoundation#1997)

Adds directives to prioritize the includes from $OpenImageIO_ROOT in case there is an older (or newer!) system install of OpenImageIO. Without this, OSL might use the includes in /usr/include/OpenImageIO yet link to the libraries in OpenImageIO_ROOT thus producing namespace clashes.

Signed-off-by: Clifford Stein <cstein@imageworks.com>
@lgritz lgritz added the build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration. label Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants