pkgsrc-WIP-changes archive

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

inflatelib: fix building with tests



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Thu Nov 5 10:11:50 2026 +0100
Changeset:	34b776a3ee4f22901c8ba4ab6661547d14410723

Modified Files:
	inflatelib/Makefile

Log Message:
inflatelib: fix building with tests

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

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

diffstat:
 inflatelib/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diffs:
diff --git a/inflatelib/Makefile b/inflatelib/Makefile
index e6ee64a205..924355208a 100644
--- a/inflatelib/Makefile
+++ b/inflatelib/Makefile
@@ -14,8 +14,13 @@ LICENSE=	mit
 
 USE_LANGUAGES=	c c++
 
-CMAKE_CONFIGURE_ARGS+=	-DINFLATELIB_TEST=OFF
+#CMAKE_CONFIGURE_ARGS+=	-DINFLATELIB_TEST=OFF
+
+# upstream uses a vcpkg-specific header file
+# https://github.com/microsoft/inflatelib/issues/34
+pre-build:
+	echo '#include <catch2/catch_all.hpp>' > ${BUILDLINK_DIR}/include/catch.hpp
 
 .include "../../devel/cmake/build.mk"
-#.include "../../devel/catch2/buildlink3.mk"
+.include "../../devel/catch2/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index