Skip to content

Commit

Permalink
Workaround to disable C4996 in external fmt (for benchmarks as well)
Browse files Browse the repository at this point in the history
  • Loading branch information
vt4a2h committed Nov 11, 2024
1 parent 4ffa0a5 commit c0832cb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,12 @@ target_link_libraries(benchmarks PRIVATE
fl
)

if(MSVC)
target_compile_options(benchmarks
PRIVATE
"/wd4996;" # external warning in fmt
)
endif()

include(Catch)
catch_discover_tests(benchmarks)

0 comments on commit c0832cb

Please sign in to comment.