Update Catch2 to version at least 2.3

They broke target name ;(
This commit is contained in:
Dawid Drozd 2018-09-05 20:19:06 +02:00 committed by Dawid Drozd
parent 96dcc67cab
commit 3c282b5139
3 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ if (NOT TARGET Dexode::EventBus)
endif ()
# From 2.3.X they broke back compatibility
find_package(Catch2 2.2 REQUIRED)
find_package(Catch2 2.3 REQUIRED)
# Target definition
add_executable(EventBusTest
@ -47,7 +47,7 @@ set(EVENTBUS_DEBUG_FLAGS
target_compile_options(EventBusTest PUBLIC "$<$<CONFIG:DEBUG>:${EVENTBUS_DEBUG_FLAGS}>")
target_link_libraries(EventBusTest PUBLIC Dexode::EventBus Catch2::Catch)
target_link_libraries(EventBusTest PUBLIC Dexode::EventBus Catch2::Catch2)
add_test(NAME EventBus.UnitTests COMMAND EventBusTest)

View File

@ -2,7 +2,7 @@
// Created by Dawid Drozd aka Gelldur on 05.08.17.
//
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <eventbus/EventCollector.h>

View File

@ -3,7 +3,7 @@
//
#define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <eventbus/EventBus.h>