From 49cc1b34e5f757c9aa35641d1358b02745badfeb Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Thu, 15 Feb 2024 11:50:58 -0700 Subject: [PATCH] Disable TRY macro tests on MSVC --- tests/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index db03179..a14c50a 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -14,8 +14,10 @@ add_executable(test-rsl random.cpp static_string.cpp static_vector.cpp - strong_type.cpp - try.cpp) + strong_type.cpp) +if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)") + target_sources(test-rsl PRIVATE try.cpp) # Requires GCC extensions +endif() target_link_libraries(test-rsl PRIVATE rsl::rsl Catch2::Catch2WithMain