Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zlib.pc vs windows #988

Open
anarazel opened this issue Jun 30, 2024 · 1 comment
Open

zlib.pc vs windows #988

anarazel opened this issue Jun 30, 2024 · 1 comment

Comments

@anarazel
Copy link

Hi,

On unix the library name is set to 'z':

set_target_properties(zlib zlibstatic PROPERTIES OUTPUT_NAME z)

but on windows that's not the case. Which makes the generated .pc file wrong:

Libs: -L${libdir} -L${sharedlibdir} -lz

Seems the library name ought to be injected as a replacement rather than hardcoded.

Regards,

Andres

@madler
Copy link
Owner

madler commented Aug 1, 2024

Do you have a suggested change?

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

No branches or pull requests

2 participants