Skip to content

Fix linking to self-built deps on Windows + Clang - #2273

Merged
doug-walker merged 1 commit into
AcademySoftwareFoundation:mainfrom
dimula73:kazakov/fix-linking-to-self-built-deps-win
Apr 1, 2026
Merged

Fix linking to self-built deps on Windows + Clang#2273
doug-walker merged 1 commit into
AcademySoftwareFoundation:mainfrom
dimula73:kazakov/fix-linking-to-self-built-deps-win

Conversation

@dimula73

Copy link
Copy Markdown
Contributor

OCIO fails to build on Windows when llvm-mingw environment is used. It happens because of incorrect conditions are used to mimic the static library names. This patch makes these names generation consistent with the CMakeLists.txt files of the corresponding deps.

  1. Expat: 'MD' suffix is added on MSVC only, 'd' suffix is added on WIN32, i.e. on clang as well.
  2. ZLib: 'd' suffix is added only on MSVC, not on clang

@linux-foundation-easycla

linux-foundation-easyclaBot commented Mar 10, 2026

Copy link
Copy Markdown

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: dimula73 / name: Dmitry Kazakov (59b6ab0)

@doug-walker
doug-walker requested a review from cozdasMarch 11, 2026 03:08

@cozdascozdas 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.

Changes look good but the DCO check should pass and need to have the PR built first.

@dimula73

Copy link
Copy Markdown
ContributorAuthor

What is DCO? Isn't the author field enough? I always thought it is reviewers, who sign-off commits...

@dimula73

Copy link
Copy Markdown
ContributorAuthor

Anyway, I'll rebase and add the lines a bit later :)

@cozdas

Copy link
Copy Markdown
Collaborator

Thanks.

Please check the contribution process doc at https://github.com/AcademySoftwareFoundation/OpenColorIO/blob/main/CONTRIBUTING.md for the details.

@dimula73
dimula73force-pushed the kazakov/fix-linking-to-self-built-deps-win branch from ded5d08 to 9a4cdfeCompareMarch 17, 2026 19:23
@dimula73

Copy link
Copy Markdown
ContributorAuthor

but the DCO check should pass

Okay, I think it should be fixed now.

1) Expat: 'MD' suffix is added on MSVC only, 'd' suffix is added on WIN32
2) ZLib: 'd' suffix is added only on MSVC
Signed-off-by: Dmitry Kazakov <dimula73@gmail.com>
@dimula73
dimula73force-pushed the kazakov/fix-linking-to-self-built-deps-win branch from 9a4cdfe to 59b6ab0CompareMarch 28, 2026 15:00
@doug-walker
doug-walker merged commit 75bb9d0 into AcademySoftwareFoundation:mainApr 1, 2026
26 checks passed
@doug-walkerdoug-walker mentioned this pull request May 6, 2026
doug-walker pushed a commit that referenced this pull request May 13, 2026
1) Expat: 'MD' suffix is added on MSVC only, 'd' suffix is added on WIN32
2) ZLib: 'd' suffix is added only on MSVC
Signed-off-by: Dmitry Kazakov <dimula73@gmail.com>
(cherry picked from commit 75bb9d0)
Signed-off-by: Doug Walker <doug.walker@autodesk.com>
Sign up for freeto 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.

4 participants

@dimula73@cozdas@remia@doug-walker