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:
parent
58833fa067
commit
c1e7c1475a
5 changed files with 1089 additions and 569 deletions
|
|
@ -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(
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
#endif
|
||||
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#include <catch.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
#include <magic_enum.hpp>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue