From 3f20bb6c1ea2cd3896e1dbef5251557fb4e31668 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Thu, 15 Jun 2023 15:42:30 -0400 Subject: [PATCH] configure.in: Allow using catch2 from system. * configure.in (--with-catch2): New option. [PKG_CONFIG]: Search catch2 via pkg-config, fall back to use bundled copy. Add a new WX_TEST_CXXFLAGS Autoconf variable to configure the include directory. * build/bakefiles/config.bkl (WX_TEST_CXXFLAGS): Add option. * tests/test.bkl [autoconf]: Add WX_TEST_CXXFLAGS option to cxxflags. * configure: Regenerate via ./autogen.sh. * tests/Makefile.in: Likewise. --- build/bakefiles/config.bkl | 1 + configure | 171 ++++++++++++++++++++++++++++++++++--- configure.in | 41 +++++++-- tests/Makefile.in | 29 +++---- tests/test.bkl | 9 +- 5 files changed, 215 insertions(+), 36 deletions(-) diff --git a/build/bakefiles/config.bkl b/build/bakefiles/config.bkl index b938edb0323a..e1b6eadb306e 100644 --- a/build/bakefiles/config.bkl +++ b/build/bakefiles/config.bkl @@ -408,6 +408,7 @@ compiled .lib files and setup.h under the lib/ toplevel directory.