bindings: cxx: use 'upstream' include path
authorAlexander Stein <alexander.stein@mailbox.org>
Wed, 7 Aug 2019 19:51:28 +0000 (21:51 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 9 Aug 2019 06:22:58 +0000 (08:22 +0200)
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 <alexander.stein@mailbox.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
bindings/cxx/tests/gpiod-cxx-test.cpp
bindings/cxx/tests/tests-chip.cpp
bindings/cxx/tests/tests-event.cpp
bindings/cxx/tests/tests-iter.cpp
bindings/cxx/tests/tests-line.cpp
configure.ac

index fbae84f5e362c98079fd1c94f48f78fe4fd8a21a..236fd2d4ebd6ec8fdf0b0dd5d54844c172662757 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #define CATCH_CONFIG_MAIN
-#include <catch.hpp>
+#include <catch2/catch.hpp>
 #include <linux/version.h>
 #include <sys/utsname.h>
 #include <system_error>
index 276b533919f26e4fee28c9bdb423e12f4da9b3b0..11c2d4c638263917d7e7dbd5aa3a709f15202de7 100644 (file)
@@ -5,7 +5,7 @@
  * Copyright (C) 2019 Bartosz Golaszewski <bgolaszewski@baylibre.com>
  */
 
-#include <catch.hpp>
+#include <catch2/catch.hpp>
 #include <gpiod.hpp>
 
 #include "gpio-mockup.hpp"
index f93bb72ea7895c8b4c6525afb1d564deb88fb171..b34347f5a45c246f7b09ac5c6665a549ae96b3c9 100644 (file)
@@ -5,7 +5,7 @@
  * Copyright (C) 2019 Bartosz Golaszewski <bgolaszewski@baylibre.com>
  */
 
-#include <catch.hpp>
+#include <catch2/catch.hpp>
 #include <gpiod.hpp>
 #include <map>
 #include <poll.h>
index 1af0256c622124c3ca1cac894696fd9e6dc90b8e..fdc2cb5875d6cecc6a9c58a497e1ba7bcfe447ab 100644 (file)
@@ -5,7 +5,7 @@
  * Copyright (C) 2019 Bartosz Golaszewski <bgolaszewski@baylibre.com>
  */
 
-#include <catch.hpp>
+#include <catch2/catch.hpp>
 #include <gpiod.hpp>
 
 #include "gpio-mockup.hpp"
index 9b21b95eaa0dc802f183c036803a5fad9ea8be3d..df89156e708f2d03051aae7866b9d2cf7f47d37c 100644 (file)
@@ -5,7 +5,7 @@
  * Copyright (C) 2019 Bartosz Golaszewski <bgolaszewski@baylibre.com>
  */
 
-#include <catch.hpp>
+#include <catch2/catch.hpp>
 #include <gpiod.hpp>
 
 #include "gpio-mockup.hpp"
index f72e13bcff360948083042753482569d2b4158ed..0459007c82c870ba6717dda4f9f5ba0c1641ca9d 100644 (file)
@@ -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