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 a721b34 commit 2504268Copy full SHA for 2504268
tests/CMakeLists.txt
@@ -33,9 +33,10 @@ 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(WIN32)
+ if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
37
target_compile_options(${TEST_NAME} PUBLIC /EHsc)
38
- else()
+ endif()
39
+ if(NOT WIN32)
40
target_compile_options(${TEST_NAME} PUBLIC -Werror -Wall -Wextra -Weffc++)
41
target_compile_options(${TEST_NAME} PUBLIC -Wsign-compare -Wshadow -Wwrite-strings -Wpointer-arith -Winit-self -Wconversion -Wsign-conversion)
42
endif()
0 commit comments