Merge pull request #27314 from parona-source:fix-libspng-pkgconfig

cmake: set SPNG_LIBRARY for pkgconfig as well
This commit is contained in:
Alexander Smorkalov 2025-05-15 09:27:57 +03:00 committed by GitHub
commit 8ceddbff68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -304,6 +304,9 @@ if(WITH_SPNG)
else()
if(PkgConfig_FOUND)
pkg_check_modules(SPNG QUIET spng)
if(SPNG_FOUND)
set(SPNG_LIBRARY ${SPNG_LIBRARIES} CACHE INTERNAL "")
endif()
endif()
endif()
if(SPNG_FOUND)