Skip to content

Commit

Permalink
CMakeLists.txt: suppress some MSVC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal committed Aug 11, 2019
1 parent 35d9c4d commit 0f10255
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ endif()
set(CMAKE_CXX_STANDARD 17)

if (MSVC)
add_compile_options(/EHsc /W4)
add_compile_options(/EHsc /W4
/Wd4100 /Wd4242 /Wd4245 /Wd4267 /Wd4365 /Wd4571 /Wd4625 /Wd4626 /Wd4820
/Wd5026 /Wd5027)
else()
foreach (FLAG all "" pedantic extra error=return-type no-unused-parameter no-gnu-zero-variadic-macro-arguments)
CHECK_CXX_COMPILER_FLAG("-W${FLAG}" WARN_${FLAG}_SUPPORTED)
Expand Down

0 comments on commit 0f10255

Please sign in to comment.