mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +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(
|
cc_library(
|
||||||
name = "catch",
|
name = "catch",
|
||||||
srcs = [],
|
srcs = [],
|
||||||
hdrs = ["test/3rdparty/Catch2/catch.hpp"],
|
hdrs = ["test/3rdparty/Catch2/include/catch2/catch.hpp"],
|
||||||
strip_include_prefix = "test/3rdparty/Catch2",
|
strip_include_prefix = "test/3rdparty/Catch2/include",
|
||||||
)
|
)
|
||||||
|
|
||||||
cc_test(
|
cc_test(
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -21,7 +21,7 @@ endif()
|
||||||
function(make_test src target std)
|
function(make_test src target std)
|
||||||
add_executable(${target} ${src})
|
add_executable(${target} ${src})
|
||||||
target_compile_options(${target} PRIVATE ${OPTIONS})
|
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})
|
target_link_libraries(${target} PRIVATE ${CMAKE_PROJECT_NAME})
|
||||||
set_target_properties(${target} PROPERTIES CXX_EXTENSIONS OFF)
|
set_target_properties(${target} PROPERTIES CXX_EXTENSIONS OFF)
|
||||||
if(std)
|
if(std)
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#define CATCH_CONFIG_MAIN
|
#define CATCH_CONFIG_MAIN
|
||||||
#include <catch.hpp>
|
#include <catch2/catch.hpp>
|
||||||
|
|
||||||
#undef MAGIC_ENUM_RANGE_MIN
|
#undef MAGIC_ENUM_RANGE_MIN
|
||||||
#define MAGIC_ENUM_RANGE_MIN -120
|
#define MAGIC_ENUM_RANGE_MIN -120
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CATCH_CONFIG_MAIN
|
#define CATCH_CONFIG_MAIN
|
||||||
#include <catch.hpp>
|
#include <catch2/catch.hpp>
|
||||||
|
|
||||||
#include <magic_enum.hpp>
|
#include <magic_enum.hpp>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue