Skip to content

Commit a721b34

Browse files
committed
Trying.
1 parent 1457b5f commit a721b34

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ target_compile_definitions(supplemental-data INTERFACE SUPPLEMENTAL_TEST_DATA_DI
3333
function(fast_float_add_cpp_test TEST_NAME)
3434
add_executable(${TEST_NAME} ${TEST_NAME}.cpp)
3535
add_test(${TEST_NAME} ${TEST_NAME})
36-
if(NOT WIN32)
36+
if(WIN32)
37+
target_compile_options(${TEST_NAME} PUBLIC /EHsc)
38+
else()
3739
target_compile_options(${TEST_NAME} PUBLIC -Werror -Wall -Wextra -Weffc++)
3840
target_compile_options(${TEST_NAME} PUBLIC -Wsign-compare -Wshadow -Wwrite-strings -Wpointer-arith -Winit-self -Wconversion -Wsign-conversion)
3941
endif()

0 commit comments

Comments
 (0)