1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00

chore: update catch2 to 2.13.4 for Apple Silicon support (#75)

This commit is contained in:
Gregor Jasny 2021-02-22 17:10:47 +01:00 committed by GitHub
parent 58833fa067
commit c1e7c1475a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 1089 additions and 569 deletions

View file

@ -34,8 +34,8 @@ cc_binary(
cc_library(
name = "catch",
srcs = [],
hdrs = ["test/3rdparty/Catch2/catch.hpp"],
strip_include_prefix = "test/3rdparty/Catch2",
hdrs = ["test/3rdparty/Catch2/include/catch2/catch.hpp"],
strip_include_prefix = "test/3rdparty/Catch2/include",
)
cc_test(

View file

@ -21,7 +21,7 @@ endif()
function(make_test src target std)
add_executable(${target} ${src})
target_compile_options(${target} PRIVATE ${OPTIONS})
target_include_directories(${target} PRIVATE 3rdparty/Catch2)
target_include_directories(${target} PRIVATE 3rdparty/Catch2/include)
target_link_libraries(${target} PRIVATE ${CMAKE_PROJECT_NAME})
set_target_properties(${target} PROPERTIES CXX_EXTENSIONS OFF)
if(std)

View file

@ -21,7 +21,7 @@
// SOFTWARE.
#define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include <catch2/catch.hpp>
#undef MAGIC_ENUM_RANGE_MIN
#define MAGIC_ENUM_RANGE_MIN -120

View file

@ -30,7 +30,7 @@
#endif
#define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include <catch2/catch.hpp>
#include <magic_enum.hpp>