From b57c78ba5ab783661fdf0a9a20b74150e4e923d4 Mon Sep 17 00:00:00 2001 From: Jeremy <51220084+jeremy-rifkin@users.noreply.github.com> Date: Tue, 14 Nov 2023 16:42:51 -0500 Subject: [PATCH] Temp workaround msvc 2022 bug --- tests/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 1cc39e54..baf771cc 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -29,6 +29,13 @@ if(PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) ) add_executable(integration tests/integration/integration.cpp tests/integration/a.cpp tests/integration/x/a.cpp) + # Temporary workaround for Visual Studio 2022 bug with __builtin_LINE() and __builtin_FILE() + # https://developercommunity.visualstudio.com/t/__builtin_LINE-function-is-reporting-w/10439054?space=62&q=__builtin_function + # TODO: Workaround in the header for end users? + target_compile_features( + integration + PUBLIC cxx_std_20 + ) target_link_libraries(integration PRIVATE libassert-lib) target_compile_options( integration