Skip to content

[OpenEXR] static compilation doesn't build all libraries #8175

@pezcode

Description

@pezcode

Describe the bug
When intalling OpenEXR with x64-windows-static, IlmImf-2_3 and IlmImfUtil-2_3 are only built as a dynamic import library. The other libraries (Half, Iex, IexMath, IlmThread, Imath) all have a static library with _s postfix.

Checked if it was just a naming issue, but linking against IlmImf-2_3.lib makes my .exe import IlmImf-2_3.dll and with it all the other dlls.

Environment

  • OS: Windows 10
  • Compiler: MS VC 2017 (15.9.15)

To Reproduce

  1. ./vcpkg install openexr --triplet x64-windows-static
  2. Go to [VCPKG_ROOT]/installed/x64-windows-static/lib
  3. No IlmImf-2_3_s.lib or IlmImfUtil-2_3_s.lib

Expected behavior
OpenEXR port should compile and install static versions of IlmImf-2_3 and IlmImfUtil-2_3.

Additional context
This was not a problem with vcpkg and OpenEXR 2.2 so I assume this PR introduced the bug:
#5227

Another discussion mentioning the issue:
#6343 (comment)

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions