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

[wxWidgets] Use libpng CMake target #16544

Closed
wants to merge 1 commit into from

Conversation

brad-anderson
Copy link
Contributor

@brad-anderson brad-anderson commented Mar 5, 2021

libpng uses png_static library name on static triplets. Using the CMake target fixes wxWidget's cmake wrapper so it works on static triplets.

Describe the pull request
Updates wxWidget's cmake wrapper to use the libpng CMake target instead of referring to the libpng library by name.

libpng uses png_static library name on static triplets. Using the CMake
target fixes wxWidget's cmake wrapper so it works on static triplets.
@Cheney-W Cheney-W requested a review from JackBoosY March 5, 2021 01:24
@JackBoosY JackBoosY added category:port-bug The issue is with a library, which is something the port should already support invalid and removed category:port-bug The issue is with a library, which is something the port should already support labels Mar 5, 2021
@JackBoosY
Copy link
Contributor

We should modify the cmake wrapper instead of this.

@brad-anderson
Copy link
Contributor Author

We should modify the cmake wrapper instead of this.

Perhaps I'm missing something but is that not what this PR does?

@Hoikas
Copy link
Contributor

Hoikas commented Mar 5, 2021

vcpkg's libpng port exports a config named libpng. This PR seems to revert to using CMake's built-in FindPNG and its PNG::PNG target.

@JackBoosY
Copy link
Contributor

Since my PR #16546 was merged. can I close this PR now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[wxWidgets] Using static triplet fails because of missing png.lib
3 participants