From: Alexander Stein Date: Wed, 7 Aug 2019 19:51:28 +0000 (+0200) Subject: bindings: cxx: use 'upstream' include path X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7e70e873da80984953aa13cee6d945476f403433;p=qemu-gpiodev%2Flibgpiod.git bindings: cxx: use 'upstream' include path According to https://github.com/catchorg/Catch2/issues/1202 the regular include is 'catch2/catch.hpp'. Also CMake and pkg-config provide include paths for this include name. Signed-off-by: Alexander Stein Signed-off-by: Bartosz Golaszewski --- diff --git a/bindings/cxx/tests/gpiod-cxx-test.cpp b/bindings/cxx/tests/gpiod-cxx-test.cpp index fbae84f..236fd2d 100644 --- a/bindings/cxx/tests/gpiod-cxx-test.cpp +++ b/bindings/cxx/tests/gpiod-cxx-test.cpp @@ -6,7 +6,7 @@ */ #define CATCH_CONFIG_MAIN -#include +#include #include #include #include diff --git a/bindings/cxx/tests/tests-chip.cpp b/bindings/cxx/tests/tests-chip.cpp index 276b533..11c2d4c 100644 --- a/bindings/cxx/tests/tests-chip.cpp +++ b/bindings/cxx/tests/tests-chip.cpp @@ -5,7 +5,7 @@ * Copyright (C) 2019 Bartosz Golaszewski */ -#include +#include #include #include "gpio-mockup.hpp" diff --git a/bindings/cxx/tests/tests-event.cpp b/bindings/cxx/tests/tests-event.cpp index f93bb72..b34347f 100644 --- a/bindings/cxx/tests/tests-event.cpp +++ b/bindings/cxx/tests/tests-event.cpp @@ -5,7 +5,7 @@ * Copyright (C) 2019 Bartosz Golaszewski */ -#include +#include #include #include #include diff --git a/bindings/cxx/tests/tests-iter.cpp b/bindings/cxx/tests/tests-iter.cpp index 1af0256..fdc2cb5 100644 --- a/bindings/cxx/tests/tests-iter.cpp +++ b/bindings/cxx/tests/tests-iter.cpp @@ -5,7 +5,7 @@ * Copyright (C) 2019 Bartosz Golaszewski */ -#include +#include #include #include "gpio-mockup.hpp" diff --git a/bindings/cxx/tests/tests-line.cpp b/bindings/cxx/tests/tests-line.cpp index 9b21b95..df89156 100644 --- a/bindings/cxx/tests/tests-line.cpp +++ b/bindings/cxx/tests/tests-line.cpp @@ -5,7 +5,7 @@ * Copyright (C) 2019 Bartosz Golaszewski */ -#include +#include #include #include "gpio-mockup.hpp" diff --git a/configure.ac b/configure.ac index f72e13b..0459007 100644 --- a/configure.ac +++ b/configure.ac @@ -165,7 +165,7 @@ then if test "x$with_tests" = xtrue then AC_LANG_PUSH([C++]) - AC_CHECK_HEADERS([catch.hpp], [], [HEADER_NOT_FOUND_CXX([catch.hpp])]) + AC_CHECK_HEADERS([catch2/catch.hpp], [], [HEADER_NOT_FOUND_CXX([catch2/catch.hpp])]) AC_LANG_POP([C++]) fi fi