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

[freetype] (Linux) Wrong INTERFACE_LINK_LIBRARIES in config #9952

Closed
Neumann-A opened this issue Feb 6, 2020 · 4 comments · Fixed by #14499
Closed

[freetype] (Linux) Wrong INTERFACE_LINK_LIBRARIES in config #9952

Neumann-A opened this issue Feb 6, 2020 · 4 comments · Fixed by #14499
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@Neumann-A
Copy link
Contributor

set_target_properties(freetype PROPERTIES
  INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include;${_IMPORT_PREFIX}/include/freetype"
  INTERFACE_LINK_LIBRARIES "/mnt/d/xlinux/installed/x64-linux/debug/lib/libz.a;\$<\$<NOT:\$<CONFIG:DEBUG>>:/mnt/d/xlinux/installed/x64-linux/lib/libbz2.a>;\$<\$<CONFIG:DEBUG>:/mnt/d/xlinux/installed/x64-linux/debug/lib/libbz2d.a>;\$<\$<NOT:\$<CONFIG:DEBUG>>:/mnt/d/xlinux/installed/x64-linux/debug/lib/libpng.a>;\$<\$<CONFIG:DEBUG>:/mnt/d/xlinux/installed/x64-linux/debug/lib/libpng16d.a>;/mnt/d/xlinux/installed/x64-linux/debug/lib/libz.a"
)

entry: /mnt/d/xlinux/installed/x64-linux/debug/lib/libz.a missing generator expression for debug/release. Links only debug

@LilyWangL LilyWangL added the category:port-bug The issue is with a library, which is something the port should already support label Mar 27, 2020
@JackBoosY
Copy link
Contributor

JackBoosY commented Jul 14, 2020

I have a bad hunch: Is this issue a common issue?

This issue is because the final target when looking for zlib is not optimized;xx;debug;xx type.

@Neumann-A
Copy link
Contributor Author

Yeah that is a common issue if you do not use targets but link libraries directly in VCPKG.
This also happens if the variable used does not have the optimized/debug keywords. In general it would require a vcpkg-cmake-wrapper.cmake for the upstream port (zlib) to correctly fix the <var>_LIBRARIES.
Such issues could be automatically detected as mentioned in #12215 (last comment paragraph in the changeset)

@JackBoosY
Copy link
Contributor

@Neumann-A So I assume your PR can fix this issue, right?

@Neumann-A
Copy link
Contributor Author

@JackBoosY: which one? #12215? No that one adds only and option to deactivate the prefix correction nothing more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants