Skip to content

Conversation

@ericmehl
Copy link
Collaborator

Building the recent dependencies on Windows, I came across a couple small fixes that needed to be made to build for Imath 3.x.

Checklist

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable.
  • I have tested my change(s) in the test suite, and added new test cases where necessary.
  • My code follows the Cortex project's prevailing coding style and conventions.

This is needed to link to Imath when it is built as a shared library, as we do in the dependencies.
BOOST_LIB_SUFFIX = ""

OPENEXR_INCLUDE_PATH = includes
ILMBASE_INCLUDE_PATH = includes + "\\imath"
Copy link
Member

Choose a reason for hiding this comment

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

Why are we using a Windows style path in the Posix config?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The CopyPaste giveth, and the CopyPaste taketh away.

Fixed and squashed into ffe6f9e

Copy link
Member

Choose a reason for hiding this comment

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

On Linux the directory is Imath (initial capital I). But now I think about it, it might be better to do this once in the SConstruct rather than in all the build configs - this is where we deal with the identical thing for OpenEXR : https://github.com/ImageEngine/cortex/blob/main/SConstruct#L1056-L1058.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good idea, that is a bit cleaner and clearer. Fixed and squashed into 246961d

@johnhaddon johnhaddon merged commit 89ba4bb into ImageEngine:main Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants