Skip to content

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

Open
dimula73 wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
dimula73:kazakov/fix-linking-to-self-built-deps-win
Open

Fix linking to self-built deps on Windows + Clang#2273
dimula73 wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
dimula73:kazakov/fix-linking-to-self-built-deps-win

Conversation

@dimula73
Copy link

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

1) Expat: 'MD' suffix is added on MSVC only, 'd' suffix is added on WIN32
2) ZLib: 'd' suffix is added only on MSVC
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 10, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: dimula73 / name: Dmitry Kazakov (ded5d08)

@doug-walker doug-walker requested a review from cozdas March 11, 2026 03:08
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.

1 participant