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

[libpng] Fix find_package() in CONFIG mode (#7968) #7972

Merged

Conversation

vicroms
Copy link
Member

@vicroms vicroms commented Aug 29, 2019

Fix #7968

The upstream CMakeLists.txt for libpng exports targets to a file named libpng16.cmake.
However, find_package(libpng CONFIG) expects a file named libpngConfig.cmake to exist instead.

In order for find_package(libpng CONFIG) to work, we create a file with the proper name (libpngConfig.cmake) that includes the one generated by the build (libpng16.cmake).

Note: CMake provides a module to find libpng by calling find_package(PNG).

@vicroms vicroms self-assigned this Aug 29, 2019
@vicroms vicroms added the info:internal This PR or Issue was filed by the vcpkg team. label Aug 29, 2019
@vicroms vicroms merged commit dc61560 into microsoft:master Aug 30, 2019
malfrancis pushed a commit to moja-global/vcpkg that referenced this pull request Sep 10, 2019
@vicroms vicroms deleted the issue/7968/libpng-find-package-broken branch October 27, 2020 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info:internal This PR or Issue was filed by the vcpkg team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

libpng find_package broken
1 participant