Skip to content

Commit

Permalink
Temp workaround msvc 2022 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Nov 14, 2023
1 parent 666b152 commit b57c78b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b57c78b

Please sign in to comment.