We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1457b5f commit a721b34Copy full SHA for a721b34
tests/CMakeLists.txt
@@ -33,7 +33,9 @@ target_compile_definitions(supplemental-data INTERFACE SUPPLEMENTAL_TEST_DATA_DI
33
function(fast_float_add_cpp_test TEST_NAME)
34
add_executable(${TEST_NAME} ${TEST_NAME}.cpp)
35
add_test(${TEST_NAME} ${TEST_NAME})
36
- if(NOT WIN32)
+ if(WIN32)
37
+ target_compile_options(${TEST_NAME} PUBLIC /EHsc)
38
+ else()
39
target_compile_options(${TEST_NAME} PUBLIC -Werror -Wall -Wextra -Weffc++)
40
target_compile_options(${TEST_NAME} PUBLIC -Wsign-compare -Wshadow -Wwrite-strings -Wpointer-arith -Winit-self -Wconversion -Wsign-conversion)
41
endif()
0 commit comments