mirror of
https://github.com/gelldur/EventBus.git
synced 2025-01-14 01:07:59 +08:00
Update Catch2 to version at least 2.3
They broke target name ;(
This commit is contained in:
parent
96dcc67cab
commit
3c282b5139
@ -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)
|
||||
|
@ -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>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
//
|
||||
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#include <catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
#include <eventbus/EventBus.h>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user