Skip to content

Commit 2e2cd33

Browse files
committed
why msvc??
1 parent e60bfe9 commit 2e2cd33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ target_precompile_headers(libut_tests PRIVATE <catch.hpp>)
3131
if(NOT MSVC)
3232
target_compile_options(libut_tests PUBLIC "-fsanitize=address" "-Og" "-g")
3333
target_link_options(libut_tests PUBLIC "-fsanitize=address" "-lg")
34+
else()
35+
target_compile_options(libut_tests PUBLIC "/Zc:__cplusplus")
3436
endif()
3537

3638
include(CTest)

0 commit comments

Comments
 (0)