test: restore compatibility with older Catch2 releases
This commit is contained in:
parent
d59d6e8765
commit
5d6acfd1d4
|
@ -558,7 +558,6 @@ endif
|
||||||
|
|
||||||
catch2 = dependency(
|
catch2 = dependency(
|
||||||
'catch2',
|
'catch2',
|
||||||
version: '>=3.5.1',
|
|
||||||
default_options: [ 'tests=false' ],
|
default_options: [ 'tests=false' ],
|
||||||
fallback: ['catch2', 'catch2_dep'],
|
fallback: ['catch2', 'catch2_dep'],
|
||||||
required: get_option('tests'),
|
required: get_option('tests'),
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
#if __has_include(<catch2/catch_test_macros.hpp>)
|
#if __has_include(<catch2/catch_test_macros.hpp>)
|
||||||
#include <catch2/catch_test_macros.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
#include <catch2/matchers/catch_matchers_all.hpp>
|
|
||||||
#else
|
#else
|
||||||
#include <catch2/catch.hpp>
|
#include <catch2/catch.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
#if __has_include(<catch2/catch_test_macros.hpp>)
|
#if __has_include(<catch2/catch_test_macros.hpp>)
|
||||||
#include <catch2/catch_test_macros.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
#include <catch2/matchers/catch_matchers_all.hpp>
|
#include <catch2/matchers/catch_matchers_string.hpp>
|
||||||
#else
|
#else
|
||||||
#include <catch2/catch.hpp>
|
#include <catch2/catch.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -3,8 +3,9 @@
|
||||||
#include <spdlog/sinks/stdout_sinks.h>
|
#include <spdlog/sinks/stdout_sinks.h>
|
||||||
#include <spdlog/spdlog.h>
|
#include <spdlog/spdlog.h>
|
||||||
|
|
||||||
#if __has_include(<catch2/catch_all.hpp>)
|
#if __has_include(<catch2/catch_session.hpp>)
|
||||||
#include <catch2/catch_all.hpp>
|
#include <catch2/catch_session.hpp>
|
||||||
|
#include <catch2/catch_version_macros.hpp>
|
||||||
#include <catch2/reporters/catch_reporter_tap.hpp>
|
#include <catch2/reporters/catch_reporter_tap.hpp>
|
||||||
#else
|
#else
|
||||||
#include <catch2/catch.hpp>
|
#include <catch2/catch.hpp>
|
||||||
|
|
Loading…
Reference in New Issue