Skip to content

Add fmt 12.2.0 compatibility - #1551

Merged
johnhaddon merged 2 commits into
ImageEngine:RB-10.7from
murraystevenson:fmt12
Aug 18, 2026
Merged

Add fmt 12.2.0 compatibility#1551
johnhaddon merged 2 commits into
ImageEngine:RB-10.7from
murraystevenson:fmt12

Conversation

@murraystevenson

Copy link
Copy Markdown
Collaborator

This allows Cortex to build with modern versions of libfmt while maintaining compatibility with our current version of 9.1.0. As a result we can remove the FMT_DEPRECATED workaround recently added for Xcode 16, as the format_as() overloads in this PR mean that we're no longer hitting deprecated functionality in libfmt 9.1.0.

@murraystevenson murraystevenson self-assigned this Aug 14, 2026

@johnhaddon johnhaddon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, but I made one small suggestion that might make things a tiny bit tidier...

Comment thread include/IECoreScene/PrimitiveVariable.h Outdated
@johnhaddon

Copy link
Copy Markdown
Member

After merging #1552, I had a go at building with -std=c++20. There was just one error, caused by OpenImageIO making an ambiguous call to format_to() (could be fmt or std). Looks like that will go away if we upgrade past LibFormat 10 though, which I assume we will be doing for platform 26?

With the addition of the `format_as` overloads in the previous commit, we no longer hit deprecated code in `fmt` and can remove this workaround.
@murraystevenson

Copy link
Copy Markdown
Collaborator Author

Looks like that will go away if we upgrade past LibFormat 10 though, which I assume we will be doing for platform 26?

Yeah, I think platform 26 will be the moment for a LibFormat bump. I haven't investigated the Gaffer side of the update, but this gets us in a place to begin...

@johnhaddon
johnhaddon merged commit fc59149 into ImageEngine:RB-10.7 Aug 18, 2026
4 of 6 checks passed
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