Skip to content

[wxWidgets] Use libpng CMake target#16544

Closed
brad-anderson wants to merge 1 commit intomicrosoft:masterfrom
brad-anderson:wx-static-png
Closed

[wxWidgets] Use libpng CMake target#16544
brad-anderson wants to merge 1 commit intomicrosoft:masterfrom
brad-anderson:wx-static-png

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