mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
cmake: set SPNG_LIBRARY for pkgconfig as well
Pkgconfig will set SPNG_LIBRARIES but not SPNG_LIBRARY, this is an issue
as modules/imgcodecs/CmakeLists.txt uses SPNG_LIBRARY.
Bug: https://bugs.gentoo.org/955661
Fixes: c92815238e
Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
parent
5d3a9788eb
commit
8fae4a65fe
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user