pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

qt6-qtimageformats: fix WrapMNG not found warning



Module Name:	pkgsrc-wip
Committed By:	Niclas Rosenvik <nros%NetBSD.org@localhost>
Pushed By:	nros
Date:		Sat Feb 27 14:19:00 2021 +0000
Changeset:	06b9fcf1f740cff84460dcfafc0b2ef15c4b0fbb

Modified Files:
	qt6-qtimageformats/files/FindWrapMNG.cmake

Log Message:
qt6-qtimageformats: fix WrapMNG not found warning

Make sure WrapMNG_FOUND is set by FindWarpMNG.cmake.
If it is not set cmake complains about WrapMNG not being found
even if it is found and used.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=06b9fcf1f740cff84460dcfafc0b2ef15c4b0fbb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 qt6-qtimageformats/files/FindWrapMNG.cmake | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diffs:
diff --git a/qt6-qtimageformats/files/FindWrapMNG.cmake b/qt6-qtimageformats/files/FindWrapMNG.cmake
index 0d87505e15..12440dcb9b 100644
--- a/qt6-qtimageformats/files/FindWrapMNG.cmake
+++ b/qt6-qtimageformats/files/FindWrapMNG.cmake
@@ -7,4 +7,6 @@
 #
 find_package(PkgConfig)
 pkg_check_modules(MNG IMPORTED_TARGET libmng>1.0.9)
-
+if(TARGET PkgConfig::MNG)
+set(WrapMNG_FOUND TRUE)
+endif()


Home | Main Index | Thread Index | Old Index